Re: Create calendar component

2007-07-19 Thread francky06l
Well I did not see the startup function in the bin, besides the code is still a Controller and not a component. Maybe you should start by an "empty" component, that you test with a "test" controller .. the component should look like this (almost empty) : class CalendartComponent extends Object

Re: Create calendar component

2007-07-18 Thread citBolon
Thanks for your help, it's very useful.. I have the code in http://bin.cakephp.org/view/1454174569, the cuestion is: I need to declare the method startup? cause this method cause error: Warning: pg_query() [function.pg-query]: Query failed: ERROR: syntax error at or near "startup" at character 1 i

Re: Create calendar component

2007-07-17 Thread francky06l
You will access the component method by using $this->Compomentname- >method() into the controller. You can use the controller object in the startup function and use something like $this->controller->set() in your component methods to pass variable to views, Thus they can be used by the helper.

Create calendar component

2007-07-17 Thread citBolon
I'm trying to create a calendar component, i have a calendars_controller.php it works well but I want it to make re-usable for layouts. How can i do this ? how can i use the controller methods in a component ? summary: i want to convert a controller and view to a component and helper note: the c