| sfBreadcrumbsPlugin discussion [message #52354] |
Tue, 20 May 2008 15:10  |
savvy224 Messages: 40 Registered: May 2008 |
Member |
|
|
|
This topic was created for all developers that are using or planing on using sfBreadcrumbsPlugin. Please feel free to contact me on my email ahmed.m.elhussaini@hotmail.com for any questions.
[Updated on: Tue, 20 May 2008 15:10]
|
|
|
|
|
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #52614 is a reply to message #52354 ] |
Fri, 23 May 2008 18:27   |
savvy224 Messages: 40 Registered: May 2008 |
Member |
|
|
|
I'm very busy at the moment, but I'm planning on releasing an update very soon after adding support to symfony 1.1
[Updated on: Fri, 23 May 2008 18:28]
|
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #52893 is a reply to message #52354 ] |
Wed, 28 May 2008 11:20   |
zupert Messages: 5 Registered: April 2008 |
Junior Member |
|
|
Hi,
your plugin is very interesting ! Thank you for this contribution.
However, I've had a problem by using it on a module not defined in the breadcrumbs.yml.
Fixed it by addin in lib/sfBreadCrumbs.php on line 162 :
if (!$module)
{
return null;
}
Also : a tought, changing the breadcrumbs.yml provided in the plugins dir means that upgrading the plugin would have it overriden ... Not very symony-ish ...
If I got some time, I'll try to change this behaviour and send you the modifications...
Greetings
Realized with symfony and sfSimpleCMSPlugin : http://darangels.zupert.info
|
|
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #53087 is a reply to message #52354 ] |
Fri, 30 May 2008 05:47   |
reynierpm Messages: 50 Registered: November 2007 Location: Cuba |
Member |
|
|
Hi,
I try to install the plugin but it doesn't work. After clear cache I get this error:
| Quote: | Fatal error: Uncaught exception 'sfConfigurationException' with message 'Configuration file " /workdata/www/gestionReynier/apps/backend/config/breadcrumbs .yml " does not have a registered handler' in /workdata/symfony/lib/config/sfConfigCache.class.php:112 Stack trace: #0 /workdata/symfony/lib/config/sfConfigCache.class.php(190): sfConfigCache->callHandler('config/breadcru...', Array, '/workdata/www/g...') #1 /workdata/www/gestionReynier/apps/backend/config/config.php( 11): sfConfigCache->checkConfig('config/breadcru...') #2 /workdata/www/gestionReynier/web/backend_dev.php(8): require_once('/workdata/www/g...') #3 {main} thrown in /workdata/symfony/lib/config/sfConfigCache.class.php on line 112
|
I think this Wiki part is confused at least for me:
| Quote: |
config_handles.php
In the same app directory were you've placed the breadcrumbs.yml, add the following to the config_handlers.yml(create it if necessary):
breadcrumbs.yml:
class: sfBreadcrumbsConfigHandler
|
It talk about two differents files: config_handlers.yml and config_handles.php I create both under /apps/backend/config dir and I get the same error. Any help?
Cheers and thanks in advance
Reynier Pérez Mira
|
|
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #53209 is a reply to message #53207 ] |
Sat, 31 May 2008 22:36   |
savvy224 Messages: 40 Registered: May 2008 |
Member |
|
|
|
I see from you screen shots, that you have a file named config_handler.yml, that file should be named "config_handlers.yml", also please provide a basic structure for the breadcrumbs.yml file with at least one module(backend in your case) and one section. See the wiki for an example for the breadcrumbs.yml structure. Please let me know how it goes. Best of luck
[Updated on: Sat, 31 May 2008 22:37]
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #53210 is a reply to message #52354 ] |
Sat, 31 May 2008 22:44   |
reynierpm Messages: 50 Registered: November 2007 Location: Cuba |
Member |
|
|
Thanks savvy now it works. I just have two more questions.
1) In the Wiki what "section" and "action" means?
2) Can I use the I18N messages files?
Cheers and thanks in advance
Reynier Pérez Mira
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #53211 is a reply to message #53210 ] |
Sat, 31 May 2008 23:01   |
savvy224 Messages: 40 Registered: May 2008 |
Member |
|
|
Good news, I'm glad that you've got it working, anyway "section" is simply a virtual grouping of actions, lets say that you have in your backend app a module called blog, and in that module there're actions for the articles, comments, preferences, and so on.
Now consider that you've a navigation menu where you've 3 items(Articles, Comments, and Preferences), and when the user hover with the mouse over any item, a submenu appears with links for actions like(addArticle, showArticles, etc...). So the items in the menu are the virtual grouping mentioned above, i.e. the "Section", and the submenu actions are simply your symfony plain old actions.
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #53212 is a reply to message #52354 ] |
Sat, 31 May 2008 23:07   |
reynierpm Messages: 50 Registered: November 2007 Location: Cuba |
Member |
|
|
Thanks a lot I understand how it works also will be nice if you write this same explanation in the Wiki, maybe some others have the same doubt. Changing the theme right now I close my browser open it again and when I access my application I see this error:
| Quote: | Fatal error: Call to a member function findSection() on a non-object in /workdata/www/gestionReynier/plugins/sfBreadcrumbsPlugin/lib /sfBreadcrumbs.php on line 164
| What this?
Reynier Pérez Mira
|
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #53214 is a reply to message #53213 ] |
Sat, 31 May 2008 23:15   |
reynierpm Messages: 50 Registered: November 2007 Location: Cuba |
Member |
|
|
| savvy224 wrote on Sat, 31 May 2008 23:12 | Could you please post the contents of the breadcrumbs.yml
|
Yes, here it's
all:
geslicsoft:
name: Gestión de Licencias de Software
sections:
categories:
name: Gestión Licencias
actions:
autores:
name: Gestión Autores
ListarAutores:
name: Listar Autores
AdicionarAutor:
name: Adicionar Autor
Reynier Pérez Mira
|
|
|
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #53219 is a reply to message #53218 ] |
Sat, 31 May 2008 23:42   |
reynierpm Messages: 50 Registered: November 2007 Location: Cuba |
Member |
|
|
| savvy224 wrote on Sat, 31 May 2008 23:38 | Looks ok, I think you're accessing a different module than the one defined in breadcrumbs.yml.
|
Yes this is the problem, I have a route defined wich redirect by default to "default" module so I think that breadcrumbs.yml doesn't find the definitions. Now can I use I18N in this? I mean how to use my string defined in a messages.es_ES.xml file in breadcrumbs.yml
Cheers
Reynier Pérez Mira
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #53220 is a reply to message #52354 ] |
Sat, 31 May 2008 23:46   |
reynierpm Messages: 50 Registered: November 2007 Location: Cuba |
Member |
|
|
Also as a suggestion, can you define a method to see if a specific section have definitions? Right now I logout and redirect to index and I saw this ugly message:
| Quote: |
Notice: Undefined index: actions in /workdata/www/gestionReynier/plugins/sfBreadcrumbsPlugin/lib /sfBreadcrumbYamlHandler.php on line 40
Warning: Invalid argument supplied for foreach() in /workdata/www/gestionReynier/plugins/sfBreadcrumbsPlugin/lib /sfBreadcrumbYamlHandler.php on line 40
Fatal error: Call to a member function findSection() on a non-object in /workdata/www/gestionReynier/plugins/sfBreadcrumbsPlugin/lib /sfBreadcrumbs.php on line 164
|
Reynier Pérez Mira
|
|
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #53223 is a reply to message #53221 ] |
Sat, 31 May 2008 23:51   |
reynierpm Messages: 50 Registered: November 2007 Location: Cuba |
Member |
|
|
| savvy224 wrote on Sat, 31 May 2008 23:48 | I have not added support to I18N in the plugin yet, I know it was not the right thing to do, but I'll patch the plugin and add I18N support today. It'll be very simple, all you'll have to do is translate the modules, sections, and actions DisplayNames.
|
I have it translated for this I ask. How I know when you upload a new version? Can you write my email and send me a advice? I'll be gratefull
Cheers
Reynier Pérez Mira
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #53224 is a reply to message #53222 ] |
Sat, 31 May 2008 23:52   |
reynierpm Messages: 50 Registered: November 2007 Location: Cuba |
Member |
|
|
| savvy224 wrote on Sat, 31 May 2008 23:50 | I'll, thanks for your kind notes.
|
Don't worry I'm glad to help at least you as developer answer the comunnity questions
Reynier Pérez Mira
|
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #53601 is a reply to message #52354 ] |
Fri, 06 June 2008 15:19   |
reynierpm Messages: 50 Registered: November 2007 Location: Cuba |
Member |
|
|
Well it's me again with some problems. I upgrade the version of the plugin and now when I call the URL http://localhost/backend_dev.php this error show up:
| Quote: |
Warning: Invalid argument supplied for foreach() in /workdata/www/gestionReynier/plugins/sfBreadcrumbsPlugin/lib /sfBreadcrumbYamlHandler.php on line 51
Fatal error: Cannot break/continue 1 level in /workdata/www/gestionReynier/plugins/sfBreadcrumbsPlugin/lib /sfBreadcrumbs.php on line 166
|
My breadcrumbs.yml file is defined as follow:
all:
default:
name: Inicio
sections:
principal:
name: Acciones
actions:
Index: Iniciar sesión
geslicsoft:
name: Gestión de Licencias
sections:
autores:
name: Autores
actions:
ListarAutores:
name: Listar Autores
AdicionarAutor:
name: Adicionar Autor
EditarAutor:
name: Editar Autor
categorias:
name: Categorias
actions:
ListarCategorias:
name: Listar Categorías
AdicionarCategoria:
name: Adicionar Categoría
EditarCategoria:
name: Editar Categoría
So I can't see where the error is. Any help?
Cheers and thanks in advance
Reynier Pérez Mira
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #53602 is a reply to message #53232 ] |
Fri, 06 June 2008 15:21   |
reynierpm Messages: 50 Registered: November 2007 Location: Cuba |
Member |
|
|
| savvy224 wrote on Sun, 01 June 2008 11:00 | Updates
- Now you can use the plugin without defining the module sections, although I don't see the point of using the plugin without defining the breadcrumbs path.
|
About this part, what happen if I define the breadcrumb in the layout.php file? If I'm in the index.php page then I get an error because I don't want to show any breadcrumb in this page. Is something like hasSlot() or hasPartial() function what I'm refer to.
Cheers
Reynier Pérez Mira
|
|
|
|
|
|
| Re: sfBreadcrumbsPlugin discussion [message #54631 is a reply to message #52354 ] |
Mon, 23 June 2008 17:20   |
|
Hey savvy224
I'm working on a big project with breadcrumbs right now. There are a few Symfony plugins available for breadcrumbs, but yours seems to be what I need (I like the simplicity of the breadcrumb definitions).
Any idea when you might get this going for Symfony 1.1? I'm sure I could get it working, but I'd like to avoid modifying the plugin's code. Let me know - I'd love to use your efforts here instead of building my own from scratch
Thanks
Ryan Weaver
http://www.sympalphp.org
http://www.thatsquality.com
@weaverryan
|
|
|
|
|
|
|