Re: $this->Auth->logout() redirection

2012-12-12 Thread Abdul Khaliq
Hi cricket thanks! i did it, just added a redirect function and after logout it redirecting me where i want. public function logout(){ $this->Auth->redirect($this->Auth->logout()); *$this->redirect(array('controller' => 'posts', 'action' => 'index'));* } On Thursday, 13 December 2012 05:53:11 U

Re: $this->Auth->logout() redirection

2012-12-12 Thread Abdul Khaliq
Missing View *Error: *The view for *UsersController::**logout()* was not found. *Error: *Confirm you have created the file: D:\xampp\htdocs\blogpost\app\View\Users\logout.ctp *Notice: *If you want to customize this error message, create app\View\Errors\missing_view.ctp Stack Trace - COR

Re: Cake is not automatically single quoting SQL string when doing Model::updateAll()

2012-12-12 Thread polutan
@euromark Ok.. thank you :) 2012/12/13 euromark > see the documentation or lots of google results like > http://stackoverflow.com/questions/6988160/cakephp-updateall-issues > they all state the same: you need to manually escape for updateAll() > > > Am Mittwoch, 12. Dezember 2012 18:45:50 UTC+1

Re: Restrict access subFolder under webroot.

2012-12-12 Thread lowpass
To clarify: The JS & CSS files themselves are not "passed" to the browser by Cake. Rather, the URLs pointing to the files reach the browser, which must make a separate request to retrieve them. Which is no different than entering the URL in the browser's location bar. In any case, there's nothing

Re: $this->Auth->logout() redirection

2012-12-12 Thread lowpass
On Wed, Dec 12, 2012 at 6:38 AM, Abdul Khaliq wrote: > When i tried to logged out it is redirecting to The rest seems to have been cut off. Redirecting where? -- Like Us on FaceBook https://www.facebook.com/CakePHP Find us on Twitter http://twitter.com/CakePHP --- You received this message

Re: Restrict access subFolder under webroot.

2012-12-12 Thread Tim Denholm
Hi Rajib, CSS and JS files, in the context of a Cake application, are executed on the client-side (web browser). Your Cake application doesn't actually do anything with the CSS or JS files, they are just passed onto the client and executed there. Restricting access as you have will only prevent yo

Re: Cake is not automatically single quoting SQL string when doing Model::updateAll()

2012-12-12 Thread euromark
see the documentation or lots of google results like http://stackoverflow.com/questions/6988160/cakephp-updateall-issues they all state the same: you need to manually escape for updateAll() Am Mittwoch, 12. Dezember 2012 18:45:50 UTC+1 schrieb polutan polution at all: > > I get SQL error when d

Restrict access subFolder under webroot.

2012-12-12 Thread Rajib Mahmud
Dear all, Thanks in advance. My problem is that if someone tries to put the URL like http://test.com/css_or_js_or_otherFolder then it goes directly those folder under webroot. Now I need to restrict all other surfer to get that access other then me. Main objective not to share css or js or any o

$this->Auth->logout() redirection

2012-12-12 Thread Abdul Khaliq
Hi, i have two controllers. *PostsController* set('posts', $this->Post->find('all')); } public function view($id = null,$title = null) { $this->Post->id = $id; $this->Post->title = $title; $this->set('post', $this->Post->read()); } public function add() { $this->set('tests', $this->Post->find('all'

Cake is not automatically single quoting SQL string when doing Model::updateAll()

2012-12-12 Thread polutan
I get SQL error when doing Model::updateAll() . The error appeared because my data string not quoted with single quote. It seems cake is not automatically single quoting my data. This is the screenshoot. Please check this out : http://img546.imageshack.us/img546/2289/localhosttaskmonusersed.png T

Re: Cake is not automatically single quoting SQL string when doing Model::updateAll()

2012-12-12 Thread polutan
This is better looking code http://pastie.org/5516905 2012/12/13 polutan > I get SQL error when doing Model::updateAll() . The error appeared because > my data string not quoted with single quote. It seems cake is not > automatically single quoting my data. > > This is the screenshoot. Please c

Re: CakePHP in Production throws odd error when inside a folder

2012-12-12 Thread Marcelo F Andrade
Em 12/12/2012 07:19, "Athan Clark" escreveu: > > Hi everyone, I'm having a bit of trouble getting my app installed properly on my server. I have it inside a folder, yet CakePHP sees it as a request to a controller when I try to view it... it's a weird bug. The app is inside a folder called /safety

Re: language problem in database cake1.3

2012-12-12 Thread Marcelo F Andrade
> On Tuesday, December 11, 2012 10:36:01 AM UTC-8, Chris wrote: >> >> anyone,...? >> why do I see this crap in a view with cake1.3,? >> ›Ð°Ñ ковый май- Розовый вечер >> >> where it used to work in 1.2 >> >> thanks Em 11/12/2012 23:59, "Chris" escreveu: > > the problem is s

Re: CakePHP in Production throws odd error when inside a folder

2012-12-12 Thread euromark
is that folder in /webroot/ ? if not it should be. that is the only folder which (with all subfolders) is publically accessible for normal setups. Am Mittwoch, 12. Dezember 2012 01:23:40 UTC+1 schrieb Athan Clark: > > Hi everyone, I'm having a bit of trouble getting my app installed properly >

Re: Using database session in the filemanager

2012-12-12 Thread mebibyte
Pfieuw, I found the solution. I assumed that cakephp was using the session for storing the userAgent. This is needed for searching in de cake_sessions table. But I didn't know that you can get the userAgent with this: $_SERVER['HTTP_USER_AGENT'] en then cakephp is hashing it. So, there is no

CakePHP in Production throws odd error when inside a folder

2012-12-12 Thread Athan Clark
Hi everyone, I'm having a bit of trouble getting my app installed properly on my server. I have it inside a folder, yet CakePHP sees it as a request to a controller when I try to view it... it's a weird bug. The app is inside a folder called /safetytraining-2/ and when I view it in development,

Re: Is overriding AppController's beforeFilter() always recommended ?

2012-12-12 Thread alaxos
Thanks for your answers. That's also how I understand this remark in the cookbook. But it could probably be clarified, because apparently the given sample code may be a bit confusing for people not very confident with oop. It seems that it leads some people to include a beforeFilter() method