Questions about problems import file .xlsx to database

2014-03-03 Thread Nguyễn Cường
I am having a problem and look forward to receive the support from everyone.
I follow the a some steps like address 
: 
http://bakery.cakephp.org/articles/melgior/2010/01/26/simple-excel-spreadsheet-helper
 
   . But I still have not finished
I am a file participants.xlsx and I want to update of its content on 
database
I do not know where it is stored - The file participants.xlsx are stored in 
the path ???
Step1 and Step2 has stabilized
Step3 I've created file : 

Participant.php (I'm not sure it's true )  and content :
?php 
$excel-generate($event['Participant'], 'Participants list '.$event[
'Event']['name']); 
?
-
I've created the file EventsController.php same as instructions
Where I was wrong. I do not know how to make it run successfully.
Please be guided every step. I started to learn about cakephp .
Thank all !


-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.


How to configure file router with array url

2014-02-26 Thread Nguyễn Cường
I have one form with content as follows
?php
echo $this-Form-create('Post',array('url'='/Posts/result'));
...
echo $this-Form-end(__('Submit'));
?
I to run the application on localhost.
I want path after updated takes the form : 
 localhost/project/bai-viet/ket-qua
What can I do ?
Thank you to all !

-- 
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.
For more options, visit https://groups.google.com/groups/opt_out.