Re: USING MYSQL STORED PROCEDURES IN CAKEPHP

2012-08-14 Thread soda sonic
use   query   for store procedures
http://book.cakephp.org/1.3/view/1027/query

2012/8/15 Milina Udara 

> Hi,
>
> Is it ok to use stored procedures in cakephp?
> There isn't any topic about stored procedures in cakephp book and api.
>
> --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>



-- 
Sincerely

Noom .  086 688 5686

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: Why doesn't JsonView trigger callbacks?

2012-08-14 Thread Lucho Molina
[Tumbleweed] 

:P

On Monday, August 13, 2012 11:28:53 AM UTC-5, Lucho Molina wrote:
>
> I was playing around with JsonView and the PaginatorHelper and noticed 
> that the data returned by $this->Paginator->next() was different to the 
> one returned by the same method when using the normal (HTML) view. 
>
> Digging into the code, I found out that the JsonView doesn't trigger the 
> beforeRender callback. Why is that? is this a bug or is it meant to be 
> like that by design?
>
> Specifically speaking, the render method of the View class triggers the 
> callbacks like this:
>
> *464 *$this->getEventManager()->dispatch(new CakeEvent('View.beforeRender', 
> $this, array($viewFileName)));
> *465 *$this->Blocks->set('content', $this->_render($viewFileName));
> *466 *$this->getEventManager()->dispatch(new CakeEvent('View.afterRender', 
> $this, array($viewFileName)));
> Whereas JsonView->render() will just return the $content without 
> triggering the callbacks. 
>
> I'm on version 2.1.3, btw.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: integrating pusher.com with cakephp

2012-08-14 Thread Nick Crane
Thanks for the info, I hope it's that simple, I'll give it a go and update 
the post.

Thanks again.

On Tuesday, 14 August 2012 15:05:10 UTC+1, Nick Crane wrote:
>
> I'm trying to implement a web socket with PUSHER within an existing 
> cakephp 2.2.1 application. Has anyone attempted anything similar or 
> come across any resources that define what is required, how this can be 
> achieved?

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: Which is the best platform for develop with cakephp in team?

2012-08-14 Thread abhijit kakade
Eclipse with SVN plugin is a good idea

On Tue, Aug 14, 2012 at 8:36 PM, soda sonic  wrote:

> editor   netbean or  aptana  or  eclipse
>
> and trello or https://trello.com/  help you for management time
>
> 2012/8/14 Carachi 
>
>> Hi,
>> I would like to know which is for you the best platform for develop with
>> Cakephp for a little team?
>> which editor? Netbeans, Eclipse,...
>> which version system? SVN, GIT, Mercurial,..
>> server? debuger? etc.
>>
>> Thank you
>>
>> Bye
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-php@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>>
>>
>>
>
>
>
> --
> Sincerely
>
> Noom .  086 688 5686
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>



-- 
Abhijit Kakade
LAMP Developer,
MCP,CCNA
Mob : +91-9923729250

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: Error: The requested address was not found on this server.

2012-08-14 Thread scs
Ok After re reading the top it sound like you said you copy only the 
View/User folder to the legacy and that is giving you problems. If this is 
the case, you need to also move the Controller and Model files for users to 
the legacy app. If both of these files are already there show us what you 
have in your user controller/model files.

On Tuesday, July 24, 2012 10:36:47 AM UTC-4, Luís de Sousa wrote:
>
> Dear all,
>
> Some weeks ago I inherited a CakePHP application that I'm supposed to 
> deploy to a server. I went through the CakePHP tutorial and put my hands to 
> work. The problem is that I can't pass from the front page 
> (app/Pages/home.ctp), any links from there get to a page with the error in 
> subject. Trying direct access to routes like /view/action have the same 
> result.
>
> I made a simple test that yielded a strange result: there's a model called 
> User with its respective controller and view. I copied the view folder to 
> another CakePHP app, and when I access to:
>
> http://localhost/myApp/User
>
> I get an error saying the User model doesn't exist, which is correct since 
> I only copied the view folder. But when I try a similar thing in the legacy 
> application:
>
> http://localhost/legacyApp/User
>
> I get the address not found error.
>
> Reading the messages in this list I tried the following:
> . changed the debug level to 1 - no further messages are shown
> . deleted the contents of /app/tmp/cache/models/ and 
> /app/tmp/cache/persistent/
> . verified .htaccess files are present
> . verified www-data has permissions to write on .htaccess files
>
> But none of these actions had effect. If anyone as a clue on what else may 
> be causing this I'd appreciate to know.
>
> Thank you and regards.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: how to call one function of one contoller into another controller

2012-08-14 Thread Yasir Arafat Hasib
Hello,

I think the following url will help you.

http://arafats.info/how-to-call-function-of-a-controller-from-another-controller-in-cakephp/



On Tue, Aug 14, 2012 at 8:57 PM, Chetan Varshney
wrote:

> You should put common functions in app controller or in component. Calling
> a controller function in other controller is not good practice. However you
> can import target controller in controller.
>
> App::import("Controller", "Target");
> $target = new TargetController;
> $target->anyFunction();
>
>
>
>
>
> On Tue, Aug 14, 2012 at 4:24 PM, sooryender  wrote:
>
>>
>>
>> On Tuesday, July 17, 2012 11:57:16 AM UTC+5:30, sneha kulkarni wrote:
>>>
>>> how i can call one function of one controller into another
>>> controller.plz help
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-php@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>>
>>
>>
>
>
>
> --
> Thanks & Regards
>
> Chetan Varshney
> Director of Ekta Softwares
> Noida India
> Website- EktaSoftwares.Com 
> Email- chetanvarsh...@gmail.com
> Skype- chetan-varshney
> Mob no- +919891538749
>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>



-- 
*Thanks & Regards.
-
Yasir Arafat (Hasib)*
*Deputy Project Manager, *Software Solutions
Grameen Solutions
Contact Information:
**
**
Cell : +8801816 536 901, +880197 *333* 2 888
Web: http://arafats.info


-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: integrating pusher.com with cakephp

2012-08-14 Thread thatsgreat2345
Yeah, it's quite simple. You just import the pusher app as a vendor, or 
require it which I believe is what the proper way of doing it in 2.2.1 is.
Like this, just put the Pusher.php file they provide in your Vendors folder 
of your app.
require_once(APP . DS . 'Vendor' . DS . 'Pusher.php');
$pusher = new Pusher('','','');//Your api keys, and stuff go here

Then you can just  do
$pusher->trigger('channel','event',arrayofdata);

And you're good to go.

On Tuesday, August 14, 2012 7:05:10 AM UTC-7, Nick Crane wrote:
>
> I'm trying to implement a web socket with PUSHER within an existing 
> cakephp 2.2.1 application. Has anyone attempted anything similar or 
> come across any resources that define what is required, how this can be 
> achieved?

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: Which is the best platform for develop with cakephp in team?

2012-08-14 Thread soda sonic
editor   netbean or  aptana  or  eclipse

and trello or https://trello.com/  help you for management time

2012/8/14 Carachi 

> Hi,
> I would like to know which is for you the best platform for develop with
> Cakephp for a little team?
> which editor? Netbeans, Eclipse,...
> which version system? SVN, GIT, Mercurial,..
> server? debuger? etc.
>
> Thank you
>
> Bye
>
> --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>



-- 
Sincerely

Noom .  086 688 5686

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




integrating pusher.com with cakephp

2012-08-14 Thread Nick Crane
I'm trying to implement a web socket with PUSHER within an existing cakephp 
2.2.1 application. Has anyone attempted anything similar or come across any 
resources that define what is required, how this can be achieved?

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Which is the best platform for develop with cakephp in team?

2012-08-14 Thread Carachi
Hi,
I would like to know which is for you the best platform for develop with 
Cakephp for a little team?
which editor? Netbeans, Eclipse,...
which version system? SVN, GIT, Mercurial,..
server? debuger? etc.

Thank you

Bye

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: how to call one function of one contoller into another controller

2012-08-14 Thread Chetan Varshney
You should put common functions in app controller or in component. Calling
a controller function in other controller is not good practice. However you
can import target controller in controller.

App::import("Controller", "Target");
$target = new TargetController;
$target->anyFunction();




On Tue, Aug 14, 2012 at 4:24 PM, sooryender  wrote:

>
>
> On Tuesday, July 17, 2012 11:57:16 AM UTC+5:30, sneha kulkarni wrote:
>>
>> how i can call one function of one controller into another controller.plz
>> help
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>



-- 
Thanks & Regards

Chetan Varshney
Director of Ekta Softwares
Noida India
Website- EktaSoftwares.Com 
Email- chetanvarsh...@gmail.com
Skype- chetan-varshney
Mob no- +919891538749

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: undefined index error

2012-08-14 Thread mohit kumar
I tried that also using a for each. still having some problems with it.

*With Best Regards,
Mohit Kumar *
*+91-9582894570*



On Tue, Aug 14, 2012 at 7:39 PM, Dave M.  wrote:

> I suggest you throw a debug($weeklyroster) into your view to see how the
> array is actually structured. I would assume that you would want
> $weeklyroster[0]['Weeklyroster']**
> ['week'], $weeklyroster[1]['Weeklyroster']**['week'], etc.
>
> On Monday, August 13, 2012 11:39:37 AM UTC-4, mohit wrote:
>>
>> Hi Folks,
>>
>> I am having a strange error. I don't know what I am doing wrong.
>> I am using following code in my weeklyrostercontroller.php file
>>
>> var $uses = array('Weeklyroster','Shift');
>>>
>>
>> I have created a function to generate the roster.
>>
>>
>> public function generate($id = null) {
>>> $this->Weeklyroster->week= $id;
>>> //if (!$this->Weeklyroster->exists(**)) {
>>> //throw new NotFoundException(__('Invalid weeklyroster'));
>>> //}
>>> //$this->set('weeklyroster', $this->Weeklyroster->read('**week',
>>> $id));
>>> $current_roster = $this->Weeklyroster->find('**all',
>>> array('conditions' => array('Weeklyroster.week' => $id)));
>>> foreach ($current_roster as $current_rosters) {
>>> $vid=$current_rosters['**Weeklyroster']['id'];
>>>
>>> $current_shifts = 
>>> $this->Weeklyroster->Shift->**find('all',array('conditions'
>>> => array('Shift.id' => $vid)));
>>>
>>>
>>> }
>>>
>>>
>>> $this->set('weeklyroster', $current_roster);
>>> $this->set('current_shifts',$**current_shifts);
>>>
>>> }
>>> }
>>
>>
>>   if a use following code ($weeklyroster['Weeklyroster']**['week'] in my
>> view file , I get the following error.
>>
>> *Notice* (8): Undefined index: Weeklyroster 
>> [*APP\View\Weeklyrosters\generate.ctp*, line *3*]
>>
>> Please suggest
>>
>>
>>
>> *With Best Regards,
>> Mohit Kumar *
>> *+91-9582894570*
>>
>>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: undefined index error

2012-08-14 Thread Dave M.
I suggest you throw a debug($weeklyroster) into your view to see how the 
array is actually structured. I would assume that you would want 
$weeklyroster[0]['Weeklyroster']['week'], 
$weeklyroster[1]['Weeklyroster']['week'], 
etc.

On Monday, August 13, 2012 11:39:37 AM UTC-4, mohit wrote:
>
> Hi Folks,
>
> I am having a strange error. I don't know what I am doing wrong.
> I am using following code in my weeklyrostercontroller.php file
>
> var $uses = array('Weeklyroster','Shift');
>>
>
> I have created a function to generate the roster.
>
>
> public function generate($id = null) {
>> $this->Weeklyroster->week= $id;
>> //if (!$this->Weeklyroster->exists()) {
>> //throw new NotFoundException(__('Invalid weeklyroster'));
>> //}
>> //$this->set('weeklyroster', $this->Weeklyroster->read('week', 
>> $id));
>> $current_roster = $this->Weeklyroster->find('all', 
>> array('conditions' => array('Weeklyroster.week' => $id)));
>> foreach ($current_roster as $current_rosters) {
>> $vid=$current_rosters['Weeklyroster']['id'];
>> 
>> $current_shifts = 
>> $this->Weeklyroster->Shift->find('all',array('conditions' => 
>> array('Shift.id' => $vid)));
>> 
>> 
>> }
>> 
>> 
>> $this->set('weeklyroster', $current_roster);
>> $this->set('current_shifts',$current_shifts);
>> 
>> }
>> }
>
>
>   if a use following code ($weeklyroster['Weeklyroster']['week'] in my 
> view file , I get the following error.
>
> *Notice* (8): Undefined index: Weeklyroster 
> [*APP\View\Weeklyrosters\generate.ctp*, line *3*]
>
> Please suggest
>
>  
>
> *With Best Regards,
> Mohit Kumar *
> *+91-9582894570*
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Sign up for newsletter form on homepage

2012-08-14 Thread iFemke
For a client website we want a newsletter sign up on the homepage, but we 
can't get this to work the way we want it. 

What's happening so far:
If you add a real email address it gets submitted to the database and the 
homepage reloads, displaying a session flash message.
If you add a fake email address or submit the form without typing in a 
email address, you get redirected to www.website.com/newsletters/add, where 
the validation error is shown.

What we want is to not get redirected to newsletters/add, but to show the 
validation errors (like fill in email address or not a real email address) 
on the homepage. 

We have spend the last 2 hours on Google and trying out different things, 
but we can't get the right solution, so we hoped you could help us!

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: how to call one function of one contoller into another controller

2012-08-14 Thread soda sonic
http://book.cakephp.org/1.3/view/996/Creating-Components

2012/8/14 soda sonic 

> you read topiccomponent.  from  cookbook
>
> i try example  for you
> ? 14 ?.?. 2012 19:49, "sooryender"  :
>
>
>>
>> On Tuesday, July 17, 2012 11:57:16 AM UTC+5:30, sneha kulkarni wrote:
>>>
>>> how i can call one function of one controller into another
>>> controller.plz help
>>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To post to this group, send email to cake-php@googlegroups.com.
>> To unsubscribe from this group, send email to
>> cake-php+unsubscr...@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>>
>>
>>
>


-- 
Sincerely

Noom .  086 688 5686

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: Error: The requested address was not found on this server.

2012-08-14 Thread soda sonic
you can copy all message error or capture error interfae and resent this
mail again I hope i can help you
เมื่อ 13 ส.ค. 2012 19:23, "Luís de Sousa" 
เขียนว่า:
>
> Please.
>
> --
> You received this message because you are subscribed to the Google Groups
"CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: how to call one function of one contoller into another controller

2012-08-14 Thread soda sonic
you read topiccomponent.  from  cookbook

i try example  for you
? 14 ?.?. 2012 19:49, "sooryender"  :

>
>
> On Tuesday, July 17, 2012 11:57:16 AM UTC+5:30, sneha kulkarni wrote:
>>
>> how i can call one function of one controller into another controller.plz
>> help
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com.
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: how to call one function of one contoller into another controller

2012-08-14 Thread sooryender


On Tuesday, July 17, 2012 11:57:16 AM UTC+5:30, sneha kulkarni wrote:
>
> how i can call one function of one controller into another controller.plz 
> help
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




how data pass through one controller to another controller with examples

2012-08-14 Thread sooryender


-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Translation of month names in Form-Helper input fields

2012-08-14 Thread Alexander Schiebel
I am currently creating the prototyp of an international application. If I 
switch to the german version it correctly loads the translations from 
Locale/deu/LC_MESSAGES/default.po. In this file I have - for example - the 
following translation.

msgid "January"
msgstr "Jänner"

It works whereever I use __('January'), which is replaced by 'Jänner'.

But the Pull-Down-Menus (displaying the names of the month) generated by 
the Form-Helper are not translated so far. 
I guess I have to implement this using LC_TIME, right?

Could anyone please give me a hint, how I could tune the Form-Helper to 
switch languages accordingly?

PS: I also tried to add the following line to the bootstrap-file.
setlocale(LC_ALL, 'de_DE.UTF8', 'de_DE', 'de', 'ge', 'deu'); 
But the Form-Helpers Monthnames are still in english.

Best whishes from Vienna, Alex


-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: CakePdf - How To Start?

2012-08-14 Thread Ceeram
Btw i just noticed there is anotyehr CakePdf plugin that does use the 
prefix thing, but works in completely different way
I got here, as someone opened a ticket on my repo, can you confirm which 
plugin you are using?

On Tuesday, August 14, 2012 12:37:42 AM UTC+2, Ceeram wrote:
>
> Hi guys, im the maintainer of the plugin. Lets nail this, so i know what 
> to add to the docs.
>
>
> For what i know everything is in the readme, but perhaps i missed a step.
>
>
> You can use CakePdf in 2 ways:
>
> 1. Render like normal html view in the browser but as pdf (or forced 
> download), use the same url and add .pdf extension. You can use the same 
> controller action, view() in this example, just use other view.ctp (in pdf 
> subdir) and layout. If you decide for whatever reason to create a separate 
> pdf_view() action, you should also browse to corresponding url: 
> users/pdf_view/1.pdf and create the pdf_view.ctp in the pdf subdir.
>
> 2. Or use directly by creating CakePdf instance to get the pdf string 
> returned to attach to an email for instance.
>
> Seems you just didnt add the .pdf url extension, also the engine value 
> should exactly match the classname of the engine without Engine suffix, so 
> for tcpdf that should be: 'engine' => 'Tcpdf'
> The 'prefix' is not a config option btw.
>
> I know people using this plugin in production sites, and the plugin has 
> plenty of tests, if i missed something id be more then happy to add 
> to/update the readme and/or tests. Its just not clear to me what is 
> missing/incorrect in the readme.
>
> From
> On Monday, August 13, 2012 11:40:47 PM UTC+2, elogic wrote:
>>
>> Thanks however Ideally I really want to get CakePdf going rather then 
>> using another process.
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: Class 'CakePlugin' not found while using google Oauth plugin

2012-08-14 Thread Piotr Beschel
clone or unzip whatever plugin to APP_DIRECTORY/Plugin/Opauth.
clone unzip strategies to Opauth/Strategy/Strategy_Name
if your app domain is http://localhost/App_Name edit Opauth bootstrap.php 
and set
Configure::write('Opauth.path', 'App_Name/auth/');
load plugin:

CakePlugin::load('Opauth', array('routes' => true, 'bootstrap' => true));

Write Strategies keys to plugin bootstrap.php or app bootstrap.php

example:

Configure::write('Opauth.Strategy.Facebook', array(
   'app_id' => 'YOUR FACEBOOK APP ID',
   'app_secret' => 'YOUR FACEBOOK APP SECRET'));

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.




Re: litespeed and cakephp

2012-08-14 Thread Piotr Beschel
find CAKE_CORE_INCLUDE_PATH in /webroot/index.php
and write full path to cake core like ROOT .DS. 'PLACE WHERE IS CAKE CORE';

W dniu niedziela, 12 sierpnia 2012 11:47:39 UTC+2 użytkownik hoss7 napisał:
>
> hi
> i have one website with Cakephp 2.1.2 on Litespeed web server.
> i have this error:
>
> Warning: include(Cake/bootstrap.php) [function.include]: failed to open 
> stream: No such file or directory in 
> /home/mybracel/public_html/app/webroot/index.php on line 77
>
> Warning: include(Cake/bootstrap.php) [function.include]: failed to open 
> stream: No such file or directory in 
> /home/mybracel/public_html/app/webroot/index.php on line 77
>
> Warning: include() [function.include]: Failed opening 'Cake/bootstrap.php' 
> for inclusion 
> (include_path='.:/usr/php4/lib/php:/usr/local/php4/lib/php:/usr/lib/php:/usr/local/lib/php:/home/mybracel/php')
>  
> in /home/mybracel/public_html/app/webroot/index.php on line 77
>
> Fatal error: CakePHP core could not be found. Check the value of 
> CAKE_CORE_INCLUDE_PATH in APP/webroot/index.php. It should point to the 
> directory containing your /cake core directory and your /vendors root 
> directory. in /home/mybracel/public_html/app/webroot/index.php on line 86
>
> *how can i fix this error?*
>
> note: in Apache web server i dont have this error.
>

-- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en-US.