Inserting records into a table from an element

2013-02-20 Thread Victor Musvibe
Hi there 

I have an element that i am calling with a view file. The element is a add 
view that is add.ctp, challenge that im having now is that the element is 
not inserting form input into the table (it_query_responses).

here is how i am calling my element within the view - 

Element('ItQueryResponses/add'); ?>

and here is the code for the element 

Form->create('ItQueryResponse'); ?>

Form->input('it_query_id');
echo $this->Form->input('hr_employee_id');
echo $this->Form->input('response');
echo $this->Form->input('it_query_status_id');
?>
Form->end(__('Submit')); ?>

and here is add function in ItQueryResponsesController

public function add() {
if ($this->request->is('post')) {
$this->ItQueryResponse->create();
if ($this->ItQueryResponse->save($this->request->data)) {
$this->Session->setFlash(__('The it query response has been saved'));
$this->redirect(array('action' => 'index'));
} else {
$this->Session->setFlash(__('The it query response could not be saved. 
Please, try again.'));
}
}
$itQueries = $this->ItQueryResponse->ItQuery->find('list');
$hrEmployees = $this->ItQueryResponse->HrEmployee->find('list');
$itQueryStatuses = $this->ItQueryResponse->ItQueryStatus->find('list');
$this->set(compact('itQueries', 'hrEmployees', 'itQueryStatuses'));
}

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Looking for a Cakephp dev to partner up with, web app 85% completed

2013-02-20 Thread jeet bajaj
Please consider me too..:-)


On Thu, Feb 21, 2013 at 9:08 AM, Jamie  wrote:

> Do you know that you just shared your source code with the entire list?
> Perhaps you should take this to private emails...
>
>
> On Wednesday, February 20, 2013 1:52:08 AM UTC-8, Neil Berrow wrote:
>
>> Ok, I will send it across, if you can setup a dev server for testing we
>> can get things going.
>>
>>
>> On 20 Feb 2013, at 11:48, Nathaniel Sumaya  wrote:
>>
>> Hi Niel, Im interested.
>>
>> On Wed, Feb 20, 2013 at 5:11 PM, Neil Berrow  wrote:
>>
>>> Hey guys
>>>
>>> I'm looking to partner up with a Cakephp dev, the web app is almost
>>> ready for launch.
>>>
>>> The ideal person would be someone who wants to take on something that's
>>> already in motion, make the project theirs, it's an elearning app with
>>> allot of potential.
>>>
>>> Contact me if you're interested.
>>>
>>> Cheers
>>>
>>> --
>>> Like Us on FaceBook 
>>> https://www.facebook.com/**CakePHP
>>> Find us on Twitter http://twitter.com/CakePHP
>>>
>>> ---
>>> You received this message because you are subscribed to the Google
>>> Groups "CakePHP" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to cake-php+u...@**googlegroups.com.
>>> To post to this group, send email to cake...@googlegroups.com.
>>>
>>> Visit this group at 
>>> http://groups.google.com/**group/cake-php?hl=en
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out
>>> .
>>>
>>>
>>>
>>
>>
>>
>> --
>> Thanks and Best Regards,
>> Nathaniel N. Sumaya
>>
>> --
>> Like Us on FaceBook 
>> https://www.facebook.com/**CakePHP
>> Find us on Twitter http://twitter.com/CakePHP
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "CakePHP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to cake-php+u...@**googlegroups.com.
>> To post to this group, send email to cake...@googlegroups.com.
>>
>> Visit this group at 
>> http://groups.google.com/**group/cake-php?hl=en
>> .
>> For more options, visit 
>> https://groups.google.com/**groups/opt_out
>> .
>>
>>
>>
>>
>>  --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Link to PDF? Yikes!

2013-02-20 Thread Marcus James
Lets say your file is inside /webroot/file/#id/mypdf.pdf

So in your view you write something like this:-

$id = 'value of id from database';

$this->Html->link('see file here','/file/'.$id.'/mypdf.pdf');

Also ,if you are storing the name of the file in your database, you can
replace the name with another variable that holds the name of the file

$fileName = 'vale of name from database';

$this->Html->link('see file here','/file/'.$id.'/'.$fileName);

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Looking for a Cakephp dev to partner up with, web app 85% completed

2013-02-20 Thread Jamie
Do you know that you just shared your source code with the entire list? 
Perhaps you should take this to private emails...

On Wednesday, February 20, 2013 1:52:08 AM UTC-8, Neil Berrow wrote:
>
> Ok, I will send it across, if you can setup a dev server for testing we 
> can get things going.
>
>
> On 20 Feb 2013, at 11:48, Nathaniel Sumaya > 
> wrote:
>
> Hi Niel, Im interested.
>
> On Wed, Feb 20, 2013 at 5:11 PM, Neil Berrow 
> > wrote:
>
>> Hey guys
>>
>> I'm looking to partner up with a Cakephp dev, the web app is almost ready 
>> for launch.
>>
>> The ideal person would be someone who wants to take on something that's 
>> already in motion, make the project theirs, it's an elearning app with 
>> allot of potential.
>>
>> Contact me if you're interested.
>>
>> Cheers
>>
>> -- 
>> Like Us on FaceBook https://www.facebook.com/CakePHP
>> Find us on Twitter http://twitter.com/CakePHP
>>  
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "CakePHP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to cake-php+u...@googlegroups.com .
>> To post to this group, send email to cake...@googlegroups.com
>> .
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>
>
> -- 
> Thanks and Best Regards,
> Nathaniel N. Sumaya
>
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to cake-php+u...@googlegroups.com .
> To post to this group, send email to cake...@googlegroups.com
> .
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Use Configure::read in $components

2013-02-20 Thread euromark
Then you should go with crickets approach and pass those values in 
afterwards (either via attributes or setters)


Am Mittwoch, 20. Februar 2013 12:17:05 UTC+1 schrieb Julien Itard:
>
> Because all my Configure::write('Settings.*) are in my beforeFilter .. I 
> load a modal to get the settings that's why this is not in bootstrap
>
> Le mercredi 20 février 2013 12:12:16 UTC+1, Julien Itard a écrit :
>>
>> Hello,
>> it seems that i can't use Configure::read() here, it return an empty 
>> string..
>>
>> My code :
>>
>> public function constructClasses() {
>> $this->components['TeamSpeak3.TeamSpeak3'] = array(
>> 'uri' => 
>> 'serverquery://'.Configure::read("Settings.teamspeak_query_user").':'.Configure::read('Settings.teamspeak_query_password').'@'.Configure::read('Settings.teamspeak_ip').':10011/?server_port='.Configure::read('Settings.teamspeak_port').'&no_query_clients=1');
>>
>> parent::constructClasses();
>> } 
>>
>> This code return : 
>> serverquery://:@:10011/?server_port=&no_query_clients=1
>>
>> Le mercredi 20 février 2013 11:16:22 UTC+1, euromark a écrit :
>>>
>>> unless he needs the uri in initialized() than this would be too late.
>>> then one might have to overwrite constructClasses():
>>>
>>> public function constructClasses() {
>>> $this->components['TeamSpeak3.TeamSpeak3'] = array(
>>>  'uri' => Configure::read('Settings.ts_uri));
>>>
>>> parent::constructClasses();
>>> }
>>>
>>> Just don't put it in $components then.
>>>
>>> Am Mittwoch, 20. Februar 2013 01:10:21 UTC+1 schrieb cricket:

 On Tue, Feb 19, 2013 at 4:00 PM, Julien Itard  
 wrote: 
 > Hi there, 
 > here is my AppController : 
 > 
 > public $components = array( 
 >   'TeamSpeak3.TeamSpeak3' => array( 
 >   'uri' => Configure::read('Settings.ts_uri) 
 >   ) 
 > ); 
 > 
 > I need to use a configure here but it doesn't work ... any idea ? 
 > 
 > Thx from France :) 

 Salut, 

 You can't do that when declaring a class variable because it depends 
 on runtime info. 

 public $components = array( 
   'TeamSpeak3.TeamSpeak3' 
 ); 

 function beforeFilter() { 
 $this->TeamSpeak3->uri = Configure::read(Settings.ts_uri); 
 } 

>>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: baking cakephp on MAC OS

2013-02-20 Thread theMojoWill
Check out my post 
here 
wrote 
it during CakeFest last year!

On Sunday, January 18, 2009 7:59:57 PM UTC, bookme wrote:
>
> Hi, 
>
> I am trying to bake cake application on MAC OS but can not get 
> success. 
>
> I have tried two solution but not working. 
>
> 1 when I run cake bake command in app folder 
>  xampp/htdocs/cakephp/app> cake bake 
> it's showing cake : command not found on terminal 
>
> 2 In parent directory when I run 
> xampp/htdocs/cakephp > ./cake/console/cake bake 
> App : app 
> Path: /Application/xampp/xampfiles/htdocs/cakephp/app 
> --- 
> Interactive Bake Shell 
> --- 
> [D]atabase Configuration 
> [M]odel 
> [V]iew 
> [C]ontroller 
> [P]roject 
> [Q]uit 
> What would you like to Bake? (D/M/V/C/P/Q) 
> > M 
>
> --- 
> Model Bake: 
> --- 
> Database Connection: 
> [default] > 
> Warning: mysql_connect(): Can't connect to local MySQL server through 
> socket '/var/mysql/mysql.sock' (2) in /Applications/xampp/xamppfiles/ 
> htdocs/cake/cake/libs/model/datasources/dbo/dbo_mysql.php on line 370 
>
> Warning: mysql_select_db(): supplied argument is not a valid MySQL- 
> Link resource in /Applications/xampp/xamppfiles/htdocs/cake/cake/libs/ 
> model/datasources/dbo/dbo_mysql.php on line 375 
>
> Warning: mysql_get_server_info(): supplied argument is not a valid 
> MySQL-Link resource in /Applications/xampp/xamppfiles/htdocs/cake/cake/ 
> libs/model/datasources/dbo/dbo_mysql.php on line 383 
>
> Warning: mysql_query(): supplied argument is not a valid MySQL-Link 
> resource in /Applications/xampp/xamppfiles/htdocs/cake/cake/libs/model/ 
> datasources/dbo/dbo_mysql.php on line 407 
> Error: Your database does not have any tables. 
>
> But My database have one table..then what's wrong here? 
> can any body tell me what's wrong I am doing here? 
>
> or please tell what's tseps to run cake bake on MAC OS. 
>
> Thanks 
>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Link to PDF? Yikes!

2013-02-20 Thread April DeRossett
Okay...the end path will be variable so a route won't work.  I just noticed 
that I typed the path wrong. The location is /webroot/files/../..

April DeRossett
President
Direct Connect Solutions
615.386.3946 (office)
615.305.7036 (mobile)
615.386.9510 (fax)

Sent from my iPhone

On Feb 20, 2013, at 8:12 AM, Jonathan Sundquist  wrote:

> Either create a route so that cake knows how to get to that folder or best 
> option would be to move the files folder under webroot.
> 
> 
> On Wed, Feb 20, 2013 at 8:05 AM, April DeRossett  
> wrote:
>> I have read, and read, but I can not figure this out.  I am hoping someone 
>> will point me in the right direction.  I have .pdf resources in 
>> app/files/id#/../..  To which I need to link.  How do I do this?  I keep 
>> getting a missing controller. "Files". Isn't there a way to link without 
>> controller and model?
>> 
>> --
>> Like Us on FaceBook https://www.facebook.com/CakePHP
>> Find us on Twitter http://twitter.com/CakePHP
>> 
>> ---
>> You received this message because you are subscribed to the Google Groups 
>> "CakePHP" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to cake-php+unsubscr...@googlegroups.com.
>> To post to this group, send email to cake-php@googlegroups.com.
>> Visit this group at http://groups.google.com/group/cake-php?hl=en.
>> For more options, visit https://groups.google.com/groups/opt_out.
> 
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Migration problem "PHP Fatal error: Class 'Inflector' not found"

2013-02-20 Thread Anja Liebermann
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Sorry to bother you again, but I am still absolutely stuck here.

Also resetting rights to 775 on the cake framework didn't help. I guess
the routing to the framework works in general becuase if not it would
not even find cake/Core/App.php, which it obviously does.

Any advice how I can try to find what is wrong here?

Calamity Jane


Am 17.02.2013 17:32, schrieb Anja Liebermann:
> Hi everybody,
> 
> as promised I finally migrate one of my 1.3 Applications to 2.0.
> I let the mirgation script run, changed the .htaccess and then I tried
> to to call my application, but always get this error:
> 
> [Sun Feb 17 17:23:56 2013] [error] [client ::1] PHP Fatal error:  Class
> 'Inflector' not found in /var/www/cake/Core/App.php on line 529
> [Sun Feb 17 17:23:56 2013] [error] [client ::1] PHP Stack trace:
> [Sun Feb 17 17:23:56 2013] [error] [client ::1] PHP   1. {main}()
> /var/www/cigar/webroot/index.php:0
> [Sun Feb 17 17:23:56 2013] [error] [client ::1] PHP   2. include()
> /var/www/cigar/webroot/index.php:90
> [Sun Feb 17 17:23:56 2013] [error] [client ::1] PHP   3.
> App::load($className = 'Configure') /var/www/cigar/webroot/index.php:0
> 
> 
> I looked at line 529 and there is a static call to the Inflector Class,
> which is where it should be.
> 
> 
> Any hints what I missed to do?
> 
> 
> Thanks in advance as always
> 
> Calamity Jane
> 
> 

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.11 (GNU/Linux)

iEYEARECAAYFAlElOmcACgkQbOdiIJzHNKEs0wCgpCvTLhe2PM+hDkmiG3x+yclf
ClQAnRGH0jXDnUKNYXLtRS++w7HAK1QD
=o6/y
-END PGP SIGNATURE-

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: 3.0: a peek into CakePHP's future

2013-02-20 Thread Cees-Jan Kiewiet
You're free in sending a PR to https://github.com/cakephp/docs with your
improvements :).


On Wed, Feb 20, 2013 at 1:15 AM, lowpass  wrote:

> Anything but the Lord of the Rings examples! Nothing against LotR --
> it's just that it's a huge distraction from the problem people are
> attempting to understand. I remember being really confused reading
> that. "Wait -- which one's Pippin?!"
>
> On Tue, Feb 19, 2013 at 7:28 AM, Novrian YF 
> wrote:
> > I'm a CakeNoobs, and I'm sure some noobs out there were been confusing to
> > understand Cake Built-in ACL.
> > So, I hope the core team will improve docs related on ACL :D
> >
> > --
> > Like Us on FaceBook https://www.facebook.com/CakePHP
> > Find us on Twitter http://twitter.com/CakePHP
> >
> > ---
> > You received this message because you are subscribed to the Google Groups
> > "CakePHP" group.
> > To unsubscribe from this group and stop receiving emails from it, send an
> > email to cake-php+unsubscr...@googlegroups.com.
> > To post to this group, send email to cake-php@googlegroups.com.
> > Visit this group at http://groups.google.com/group/cake-php?hl=en.
> > For more options, visit https://groups.google.com/groups/opt_out.
> >
> >
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>


-- 

Website
 | 
Blog
 | Linkedin  |
Twitter |
Facebook 

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Looking for Cakephp Developer In India for full time job.

2013-02-20 Thread chetan varshney
We are looking for Cakephp Developer in India for full time job.

Company: Ektanjali Softwares Pvt Ltd (www.ektanjali.com)
Job Location: Noida, India
Job Description: Sound knowledge of programming and OOPs concepts, Very 
Strong Analytical and logical skills. Good Knowledge of Cakephp/ Mysql/ 
Ajax/ Jquery
Job Timing: Full Time (5 or 6 days in a week)
Salary: As per discussion

Interested Candidates can send their resumes at j...@ektanjali.com


-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Passing form values from an element to a table in cakephp

2013-02-20 Thread Victor Musvibe
I have a IT query system where users add their queries. When i view the 
query i should be able to add a response to the query. The response should 
be added to table named it_query_responses and Model name is 
ItQueryResponse. 

Through an element i am including the add response in the view.ctp for the 
IT queries. Challenge that i am having now is that the element is not 
saving the response into the it_query_responses table.

Here is my add function for response controller

public function add() {
if ($this->request->is('post')) {
$this->ItQueryResponse->create();
if ($this->ItQueryResponse->save($this->request->data)) {
$this->Session->setFlash(__('The it query response has been saved'));
$this->redirect(array('action' => 'index'));
} else {
$this->Session->setFlash(__('The it query response could not be saved. 
Please, try again.'));
}
}
$itQueries = $this->ItQueryResponse->ItQuery->find('list');
$hrEmployees = $this->ItQueryResponse->HrEmployee->find('list');
$itQueryStatuses = $this->ItQueryResponse->ItQueryStatus->find('list');
$this->set(compact('itQueries', 'hrEmployees', 'itQueryStatuses'));
}

and here is how i am calling my element after the closing div in view.ctp

element('ItQueryResponses/add'); ?>

here is the code for my element

Form->create('ItQueryResponse'); ?>


Form->input('it_query_id');
echo $this->Form->input('hr_employee_id');
echo $this->Form->input('response');
echo $this->Form->input('it_query_status_id');
?>

Form->end(__('Submit')); ?>


Thank you in advance.

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Link to PDF? Yikes!

2013-02-20 Thread Jonathan Sundquist
Either create a route so that cake knows how to get to that folder or best
option would be to move the files folder under webroot.


On Wed, Feb 20, 2013 at 8:05 AM, April DeRossett
wrote:

> I have read, and read, but I can not figure this out.  I am hoping someone
> will point me in the right direction.  I have .pdf resources in
> app/files/id#/../..  To which I need to link.  How do I do this?  I keep
> getting a missing controller. "Files". Isn't there a way to link without
> controller and model?
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Link to PDF? Yikes!

2013-02-20 Thread April DeRossett
I have read, and read, but I can not figure this out.  I am hoping someone will 
point me in the right direction.  I have .pdf resources in app/files/id#/../..  
To which I need to link.  How do I do this?  I keep getting a missing 
controller. "Files". Isn't there a way to link without controller and model?  

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Implementing the Event Notifier Pattern in CakePHP

2013-02-20 Thread david . suna


On Wednesday, February 20, 2013 2:05:49 AM UTC+2, cricket wrote:
>
>
> Better to implement this in a component ... as long as your events 
> will always be triggered from within a controller. That is, you won't 
> be calling it in an afterDelete() callback. From the controller: 
>
> $this->Notifier->send('ModelName', ...); 
>
> Or, maybe pass it a keyed array. In any case, better as a component, imho. 
>

The manual says "To access/use a model in a component is not generally 
recommended" and this will need to access several models (at least the 
EmailNotification model to determine who to send to as well as other models 
to map the specific instance of the updated model to a particular client).

What is the advantage of a component over the other alternatives I raised?

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




CakePHP 2.2.7 quick start problem

2013-02-20 Thread Reid Lai
Dear All, 

I am a newbie to use CakePHP and wish someone can help me for the quick 
setup problem.

I followed PHP 2.2.7 quick start guide to clone cakephp 2.2.7 and create a 
project in my webserver.  Everything works fine except Cake-testController 
not found when I visit the page.  Anyone can help me to solve this problem? 
 I did try to create Cake-testController under Controller folder but it 
complains me syntax error at "hyphen" (this is known by me(.  Here are my 
error:

Error: Cake-testController could not be found.

Error: Create the class Cake-testController below in file: 
app\Controller\Cake-testController.php

dispatch(CakeRequest, 
CakeResponse)
ROOT\index.php line 42 ? require(string)

Cheers,

Reid

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Use Configure::read in $components

2013-02-20 Thread Julien Itard
Because all my Configure::write('Settings.*) are in my beforeFilter .. I 
load a modal to get the settings that's why this is not in bootstrap

Le mercredi 20 février 2013 12:12:16 UTC+1, Julien Itard a écrit :
>
> Hello,
> it seems that i can't use Configure::read() here, it return an empty 
> string..
>
> My code :
>
> public function constructClasses() {
> $this->components['TeamSpeak3.TeamSpeak3'] = array(
> 'uri' => 
> 'serverquery://'.Configure::read("Settings.teamspeak_query_user").':'.Configure::read('Settings.teamspeak_query_password').'@'.Configure::read('Settings.teamspeak_ip').':10011/?server_port='.Configure::read('Settings.teamspeak_port').'&no_query_clients=1');
>
> parent::constructClasses();
> } 
>
> This code return : serverquery://:@:10011/?server_port=&no_query_clients=1
>
> Le mercredi 20 février 2013 11:16:22 UTC+1, euromark a écrit :
>>
>> unless he needs the uri in initialized() than this would be too late.
>> then one might have to overwrite constructClasses():
>>
>> public function constructClasses() {
>> $this->components['TeamSpeak3.TeamSpeak3'] = array(
>>  'uri' => Configure::read('Settings.ts_uri));
>>
>> parent::constructClasses();
>> }
>>
>> Just don't put it in $components then.
>>
>> Am Mittwoch, 20. Februar 2013 01:10:21 UTC+1 schrieb cricket:
>>>
>>> On Tue, Feb 19, 2013 at 4:00 PM, Julien Itard  
>>> wrote: 
>>> > Hi there, 
>>> > here is my AppController : 
>>> > 
>>> > public $components = array( 
>>> >   'TeamSpeak3.TeamSpeak3' => array( 
>>> >   'uri' => Configure::read('Settings.ts_uri) 
>>> >   ) 
>>> > ); 
>>> > 
>>> > I need to use a configure here but it doesn't work ... any idea ? 
>>> > 
>>> > Thx from France :) 
>>>
>>> Salut, 
>>>
>>> You can't do that when declaring a class variable because it depends 
>>> on runtime info. 
>>>
>>> public $components = array( 
>>>   'TeamSpeak3.TeamSpeak3' 
>>> ); 
>>>
>>> function beforeFilter() { 
>>> $this->TeamSpeak3->uri = Configure::read(Settings.ts_uri); 
>>> } 
>>>
>>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Use Configure::read in $components

2013-02-20 Thread Julien Itard
Hello,
it seems that i can't use Configure::read() here, it return an empty 
string..

My code :

public function constructClasses() {
$this->components['TeamSpeak3.TeamSpeak3'] = array(
'uri' => 
'serverquery://'.Configure::read("Settings.teamspeak_query_user").':'.Configure::read('Settings.teamspeak_query_password').'@'.Configure::read('Settings.teamspeak_ip').':10011/?server_port='.Configure::read('Settings.teamspeak_port').'&no_query_clients=1');

parent::constructClasses();
} 

This code return : serverquery://:@:10011/?server_port=&no_query_clients=1

Le mercredi 20 février 2013 11:16:22 UTC+1, euromark a écrit :
>
> unless he needs the uri in initialized() than this would be too late.
> then one might have to overwrite constructClasses():
>
> public function constructClasses() {
> $this->components['TeamSpeak3.TeamSpeak3'] = array(
>  'uri' => Configure::read('Settings.ts_uri));
>
> parent::constructClasses();
> }
>
> Just don't put it in $components then.
>
> Am Mittwoch, 20. Februar 2013 01:10:21 UTC+1 schrieb cricket:
>>
>> On Tue, Feb 19, 2013 at 4:00 PM, Julien Itard  
>> wrote: 
>> > Hi there, 
>> > here is my AppController : 
>> > 
>> > public $components = array( 
>> >   'TeamSpeak3.TeamSpeak3' => array( 
>> >   'uri' => Configure::read('Settings.ts_uri) 
>> >   ) 
>> > ); 
>> > 
>> > I need to use a configure here but it doesn't work ... any idea ? 
>> > 
>> > Thx from France :) 
>>
>> Salut, 
>>
>> You can't do that when declaring a class variable because it depends 
>> on runtime info. 
>>
>> public $components = array( 
>>   'TeamSpeak3.TeamSpeak3' 
>> ); 
>>
>> function beforeFilter() { 
>> $this->TeamSpeak3->uri = Configure::read(Settings.ts_uri); 
>> } 
>>
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Use Configure::read in $components

2013-02-20 Thread euromark
unless he needs the uri in initialized() than this would be too late.
then one might have to overwrite constructClasses():

public function constructClasses() {
$this->components['TeamSpeak3.TeamSpeak3'] = array(
 'uri' => Configure::read('Settings.ts_uri));

parent::constructClasses();
}

Just don't put it in $components then.

Am Mittwoch, 20. Februar 2013 01:10:21 UTC+1 schrieb cricket:
>
> On Tue, Feb 19, 2013 at 4:00 PM, Julien Itard 
> > 
> wrote: 
> > Hi there, 
> > here is my AppController : 
> > 
> > public $components = array( 
> >   'TeamSpeak3.TeamSpeak3' => array( 
> >   'uri' => Configure::read('Settings.ts_uri) 
> >   ) 
> > ); 
> > 
> > I need to use a configure here but it doesn't work ... any idea ? 
> > 
> > Thx from France :) 
>
> Salut, 
>
> You can't do that when declaring a class variable because it depends 
> on runtime info. 
>
> public $components = array( 
>   'TeamSpeak3.TeamSpeak3' 
> ); 
>
> function beforeFilter() { 
> $this->TeamSpeak3->uri = Configure::read(Settings.ts_uri); 
> } 
>

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Looking for a Cakephp dev to partner up with, web app 85% completed

2013-02-20 Thread Neil Berrow
Ok, I will send it across, if you can setup a dev server for testing we can get 
things going.


On 20 Feb 2013, at 11:48, Nathaniel Sumaya  wrote:

> Hi Niel, Im interested.
> 
> On Wed, Feb 20, 2013 at 5:11 PM, Neil Berrow  wrote:
> Hey guys
> 
> I'm looking to partner up with a Cakephp dev, the web app is almost ready for 
> launch.
> 
> The ideal person would be someone who wants to take on something that's 
> already in motion, make the project theirs, it's an elearning app with allot 
> of potential.
> 
> Contact me if you're interested.
> 
> Cheers
> 
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  
> 
> 
> 
> -- 
> Thanks and Best Regards,
> Nathaniel N. Sumaya
> 
> -- 
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>  
> --- 
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>  
>  

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Re: Looking for a Cakephp dev to partner up with, web app 85% completed

2013-02-20 Thread Nathaniel Sumaya
Hi Niel, Im interested.

On Wed, Feb 20, 2013 at 5:11 PM, Neil Berrow  wrote:

> Hey guys
>
> I'm looking to partner up with a Cakephp dev, the web app is almost ready
> for launch.
>
> The ideal person would be someone who wants to take on something that's
> already in motion, make the project theirs, it's an elearning app with
> allot of potential.
>
> Contact me if you're interested.
>
> Cheers
>
> --
> Like Us on FaceBook https://www.facebook.com/CakePHP
> Find us on Twitter http://twitter.com/CakePHP
>
> ---
> You received this message because you are subscribed to the Google Groups
> "CakePHP" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to cake-php+unsubscr...@googlegroups.com.
> To post to this group, send email to cake-php@googlegroups.com.
> Visit this group at http://groups.google.com/group/cake-php?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Thanks and Best Regards,
Nathaniel N. Sumaya

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.




Looking for a Cakephp dev to partner up with, web app 85% completed

2013-02-20 Thread Neil Berrow
Hey guys

I'm looking to partner up with a Cakephp dev, the web app is almost ready 
for launch.

The ideal person would be someone who wants to take on something that's 
already in motion, make the project theirs, it's an elearning app with 
allot of potential.

Contact me if you're interested.

Cheers

-- 
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP

--- 
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to cake-php+unsubscr...@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.