Re: ERROR: Unable to access file

2008-11-05 Thread Tulio Faria
I've updated the dev version too... And I dont get these errors :( On 5 nov, 14:01, Tulio Faria <[EMAIL PROTECTED]> wrote: > No. > > I've update to RC2 because I got other erros that in RC3 were fixed. > > But is there any significant change? > > On 5

Re: ERROR: Unable to access file

2008-11-05 Thread Tulio Faria
--- > Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Tulio > Faria > Gesendet: Mittwoch, 5. November 2008 14:41 > An: CakePHP > Betreff: Re: ERROR: Unable to access file > > Yes, > > I have already done this... > > The strange thing i

Re: ERROR: Unable to access file

2008-11-05 Thread Tulio Faria
tem and migrated to an iX system. > > Did you check the access right on all your files and folders already? > > Anja > > -Ursprüngliche Nachricht- > Von: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] Im Auftrag von Tulio > Faria > Gesendet: Mittwoch, 5. Novemb

ERROR: Unable to access file

2008-11-05 Thread Tulio Faria
Hi guys, I'm using CakePHP RC3 and when I put my app in production I got this error: Warning (2): file_exists() [function.file-exists]: Unable to access / usr/local/apache2/htdocs/domains/helomar/app/models/datasources/dbo/ dbo_mysql.php [CORE/cake/libs/model/connection_manager.php, line 177] an

Re: reset Session variables without any visible cause

2008-03-30 Thread Tulio Faria
I'm having the same problem too... I usually get this error when I double-click a link. I guess there is something wrong when a cake request doesnt start and end. Does anyone have the same problem? Solutions? On 16 mar, 19:55, cradick <[EMAIL PROTECTED]> wrote: > I am having the same problem. I

Re: Saving additional fields in HABTM tables ("With" Associations)

2008-01-30 Thread Tulio Faria
For example, a model: GuessLocation that belongsTo: Guess and Location, and Guess and Location hasMany: GuessLocation. On 30 jan, 14:14, Tulio Faria <[EMAIL PROTECTED]> wrote: > I'd create a class between others, like a "join class". > > On 30 jan, 12:35, su6

Re: Saving additional fields in HABTM tables ("With" Associations)

2008-01-30 Thread Tulio Faria
I'd create a class between others, like a "join class". On 30 jan, 12:35, su6z3r0 <[EMAIL PROTECTED]> wrote: > Here is what I am trying so far. > > http://bin.cakephp.org/view/1751195932 > > But this example only shows how to save the foreign keys in the HABTM > table. But I have not found out ye

Re: Change URI "/" Separator to another character.

2008-01-30 Thread Tulio Faria
I guess you could use routes... Like, Router::connect("/:controller_:action"); I didnt test it here, but I guess it can work... On 30 jan, 13:40, MX <[EMAIL PROTECTED]> wrote: > Hey folks, > > I searched but this subject is due to return non-related results due > to its keywords. > > Well im wo

Re: expecting ControllerClassName.htmlController (yes, again)

2008-01-28 Thread Tulio Faria
f > the file is not physically on the server. Unix is case-sensitive, so > you might want to link to this: > > http://www.atriumnet.com.br/Faq/ > > Adam > > On Jan 29, 9:08 am, Tulio Faria <[EMAIL PROTECTED]> wrote: > > > No, > > > it is routing

Re: expecting ControllerClassName.htmlController (yes, again)

2008-01-28 Thread Tulio Faria
No, it is routing by default route. On 28 jan, 16:24, "Renan Gonçalves" <[EMAIL PROTECTED]> wrote: > Are you using Route to handle it? > > On Jan 28, 2008 4:14 PM, Tulio Faria <[EMAIL PROTECTED]> wrote: > > > > > > > Hi guys, > > >

expecting ControllerClassName.htmlController (yes, again)

2008-01-28 Thread Tulio Faria
Hi guys, I developed a simple controller that shows news... I'm using cake 1.2 ( http://www.atriumnet.com.br/faq/ ) And I got this error: Missing controller You are seeing this error because controller Faq.htmlController could not be found. Notice: If you want to customize this error message

Re: Display toolbar after login

2008-01-28 Thread Tulio Faria
In app_controller, use beforeFilter callback for verify if the user is logged in, something like this: function beforeFilter(){ if ($this->Session->check("userInfo")){ $this->set("loggedIn", true); } } in your default.ctp layout (or other), you check if $loggedIn has been

Re: Expecting ControllerName.htmlController error

2007-11-27 Thread Tulio Faria
No, I didnt. I didnt understand because I copied this controller as Noticiass and it works... On 27 nov, 11:05, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > because you put it in the $name > > On Nov 27, 2007 6:38 AM, Tulio Faria <[EMAIL PROTECTED]> wrote:

Expecting ControllerName.htmlController error

2007-11-27 Thread Tulio Faria
Hi guys, I developed a simple controller that shows news... I'm using cake 1.2 ( http://www.atriumnet.com.br/noticias/ler/3 ) And I got this error: Missing controller You are seeing this error because controller Noticias.htmlController could not be found. Notice: If you want to customize thi

Re: Model used by all controller

2007-10-30 Thread Tulio Faria
You could create a component to do this... Inside the controller you load your models using loadModel function. []'s On 30 out, 09:48, Cristian Vrabie <[EMAIL PROTECTED]> wrote: > Hey guys, > I'm in a sittuation where I need all my controllers to use a global > model + their specific models. My

Re: Share Models between applications

2007-10-11 Thread Tulio Faria
I mean using the same model files :) On 11 out, 11:01, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > in config/database.php add > > var $'shared_db = array( > 'driver' => 'mysql', > > ); > > In all such model ad

Share Models between applications

2007-10-11 Thread Tulio Faria
Hi everyone, I'm doing 4 applications those have the same models related to the same database... Is there a way to share them with each other keeping them in one folder? I've found something in /app/config/bootstrap.php , but it didnt work... Can anyone help me? --~--~-~--~~-

Re: default.thml not rendering add, edit, view, or index

2007-08-06 Thread Tulio Faria
Just open /cake/libs/view/templates/layouts/default.thtml and you will see the cake default layout... []'s On Aug 6, 12:35 pm, Daghe9193 <[EMAIL PROTECTED]> wrote: > I was able to figure out what was wrong with my default.thtml be > looking at an older project of mine. I left the $content_for_

Re: BeforeFilter in Model

2007-08-06 Thread Tulio Faria
Hi, you could use: afterFind($results) where $results is the result of the find, like findAll... []'s On Aug 6, 12:52 pm, Mike Digital Egg <[EMAIL PROTECTED]> wrote: > Hi, > > I would like to adjust a price coming out of the database at the model > level so that it is consistent throughout the

Re: Using models in app controller for default.thtml ???

2007-07-29 Thread Tulio Faria
Or you can try create a component, and load it with loadComponent or anything else. I think it's better... On 29 jul, 21:54, Geoff Ford <[EMAIL PROTECTED]> wrote: > I believe $uses is overwritten by the actual controller that is > invoked. I suggest you use loadModel() and creat your own instanc

Re: where do I put my ordinary files?

2007-07-23 Thread Tulio Faria
You could create an element for it and call the renderElement method, or call in view: $this->render("name_of_view"); for work directly with a specific view... []'s Tulio Faria www.tuliofaria.net On 23 jul, 17:58, Sascha Fröhlich <[EMAIL PROTECTED]> wrote: > --

Geocoding

2007-07-03 Thread Tulio Faria
Hi guys, I'm testing the code explained in: http://bakery.cakephp.org/articles/view/geocoding-in-cakephp Can anyone help me? And I am getting these errors: Notice (8): Undefined index: scheme [CORE\cake\libs\http_socket.php, line 268] Context | Code $path = "http://maps.google.com/m

Re: Cake-Powered?

2007-06-05 Thread Tulio Faria
I like the idea I recently did something like this in my blog (www.tuliofaria.net (sorry, but it is written in portuguese)), there you can see a site which I did in 20 hours and its source code... http://www.tuliofaria.net/codigo-fonte-de-site-feito-em-cakephp-estritamente-para-estudo/ (in p

Re: Update two models with one form

2007-05-16 Thread Tulio Faria
You can use: $this->Model1->save($this->data); $this->Model2->save($this->data); and in the controller: var $uses = array("Model1", "Model2"); best, On 16 maio, 10:26, gerbenzomp <[EMAIL PROTECTED]> wrote: > Sorry, my actual question is: > > How to update another model's table when there is no

Re: Creating sub module / admin panel

2007-05-08 Thread Tulio Faria
I forgot one thing. You need to redirect the /admin/ to admin-> index in routes, using: $Route->connect('/admin', array('controller' => 'admin', 'action' => 'index')); []'s Tulio Faria www.tuliofaria.net On 8 m

Re: Creating sub module / admin panel

2007-05-08 Thread Tulio Faria
checkSession(){ // checks if user has been logged if not redirect to login page } } ?> []'s Tulio Faria www.tuliofaria.net On 8 maio, 16:53, Hellbot <[EMAIL PROTECTED]> wrote: > I'm not sure how this fits the ideology of CakePHP :), but you can create a > directory /admin i

Re: Routing and html helper

2007-05-02 Thread Tulio Faria
You can create another helper, like a HtmlExt (HTML Extension :) ) which do this... probably you can use the Html helper default as base Tulio, On 2 maio, 19:54, gerbenzomp <[EMAIL PROTECTED]> wrote: > I've changed the routes in my app, so that my paths are like this: > > $Route->connect("/

Re: Global css navigation menu from DB

2007-04-20 Thread Tulio Faria
In this case, I prefer to create a component and use it in the AppController. I have a lot of problems with $uses in AppController, and the only way I found to around this was using component. Best, On 18 abr, 10:22, Andrew McCafferty <[EMAIL PROTECTED]> wrote: > Firstly, the $name of AppContro