Re: Create database table using controller.

2012-09-04 Thread Dr. Tarique Sani
On Sun, Feb 28, 2010 at 3:04 PM, veepee wrote: > I've found the problem. > It is caused by the listsources() method in cakephp has cached the Right! and listsources() reads the list from a cache file similar to myapp_cake_model_default_pathname_list This cache file is updated/created when a page

Any problems with URL with unusual characters due to parameters having unusual characters

2012-09-04 Thread Lightee
Dear CakePHP experts, I need to pass some parameters with unusual characters like <,>, -,^ to cakephp. Will there be any problems if the URL contains these kind of "funny" characters? Will Cakephp be able to handle these kind of parameters? Thank you for your help. -- You received this messag

Re: Create database table using controller.

2012-09-04 Thread jeet bajaj
I am using cakephp vesion 2.1.0 I hope this may help you, App::import('Model', 'ConnectionManager'); $con = new ConnectionManager; $cn = $con->getDataSource('default'); $cn->query("CREATE TABLE customer (First_Name char(50),

Re: XML export basics

2012-09-04 Thread kevin.ncbible
Andras: Thank you! That was exactly what I needed, inserted at the top of the controller page. I do appreciate your help. On Tuesday, September 4, 2012 5:49:26 PM UTC-7, Andras Kende wrote: > > Try to add: > > App::uses('Xml', 'Utility'); > > Andras Kende > http://www.kende.com > -- You receive

Re: How to use two view(controller) in a page??

2012-09-04 Thread shyandsy
Hi, thanks for your anwser firstly. I have tried the method of element. I can load the login view that were written in the view/users/login.ctp, but I do not know how to process the POST request by UsersController.login()? I can not find the detail description on the cookbook 2.0. 在 2012年9月

Re: How to use two view(controller) in a page??

2012-09-04 Thread shyandsy
Actually, I can not see the login form that were written in login.ctp although I already use the requestAction(). The source code related the problem as below: UsersController.php: class UsersController extends AppController { .

Re: XML export basics

2012-09-04 Thread Andras Kende
Try to add: App::uses('Xml', 'Utility'); Andras Kende http://www.kende.com On Sep 4, 2012, at 4:11 PM, kevin.ncbible wrote: > Hello ... and thank you for being willing to offer your time and expertise to > help me! > > My ultimate goal is to take the data from one of my models and export i

Re: How to use two view(controller) in a page??

2012-09-04 Thread Greg Skerman
I'd do it with an element personally. Have the home page retrieve the data from the models in question then pass the resulting data to individual elements... requestAction is a major performance hit, especially if you are not caching the results...and on the home page as described here you are loo

Re: netbeans cake support

2012-09-04 Thread Greg Skerman
The comments are just good practice - and the payoff for code completion is well worth it. I searched for a plugin for a long while and then resigned myself to using the comments. Its worth noting that when you use the bake console the generated models and controllers already have comments which

Re: CakePHP 2.2.2 release

2012-09-04 Thread Shih Oon Liong
Can we assume that upgrading from CakePHP 2.2.1 to 2.2.2 is relatively straightforward? I tried looking up for migration guide for this version but there seems to be only a guide from 2.1.x to 2.2.x http://book.cakephp.org/2.0/en/appendices/2-2-migration-guide.html I assume since there is

XML export basics

2012-09-04 Thread kevin.ncbible
Hello ... and thank you for being willing to offer your time and expertise to help me! My ultimate goal is to take the data from one of my models and export it as an xml file (that I can then import into Adobe InDesign). I've read the article "XML" under "Core Libraries," but cannot seem to get

Re: How to save and retrieve the status of a dropdown menu between views?

2012-09-04 Thread darkangel
thanks for your answer but I dont get it, I was thinking about to write a parameter with Session->write to read it beforeRender and fill my view depending on that parameter. Is there a way to have that functionality just with Js? On Tuesday, September 4, 2012 2:27:19 PM UTC-6, cricket wrote:

Re: Sessions expiring when they should not

2012-09-04 Thread Chris Cinelli
It looks like the code is in CakeSession.php I think I solved the cookie expiration problem with this in the core.php: Configure::write('Session', array( 'defaults' => 'php', 'cookieTimeout' => 0, //Lives until the browser is closed. 'checkAgent' => false //To fix a

Re: Text not aligned with radio button

2012-09-04 Thread Mohammad Naghavi
The way you are doing it, there wont be, I would suggest you to start a whole new CSS file, this will be the way if you are going to customize your app's view fully. regards, Mohammad On Tue, Sep 4, 2012 at 12:12 AM, Daniel wrote: > OK, I found a way to make the buttons and the text align. > I

Re: cakephp 2.2.1 installation process in windows xp

2012-09-04 Thread Mohammad Naghavi
Hi PMR the given links above are good enough to start with, I would however never go for installing apache and php manually for a development environment. as stated before, just install XAMPP and you will also have phpmyadmin and you can just add a DB and an account for using the cakephp. as for us

Re: How to save and retrieve the status of a dropdown menu between views?

2012-09-04 Thread lowpass
Rather than store the state between requests, you could use some js to open it if necessary. $('#mws-navigation a').each(function() { if ($(this).attr('href') == location.href) { $(this).closest('ul').toggleClass('closed'); return false; } })

Re: netbeans cake support

2012-09-04 Thread Chris Cinelli
I love Netbeans too. And I am able to use it pretty well even without a plugin. If you find something that work on CakePHP 2.2, I would love to know it too. On Mon, Sep 3, 2012 at 12:35 PM, Mohammad Naghavi wrote: > Hi everybody, > I'm searching for a netbeans plugin which adds cakephp support. I

Re: Sessions expiring when they should not

2012-09-04 Thread Chris Cinelli
Anybody that know at least what it is the expected behavior? Is it normal that the CAKEPHP cookie has 6h expiration after login and never get updated? Best, Chris On Fri, Aug 31, 2012 at 2:20 PM, Chris Cinelli < chris.cine...@formativelearning.com> wrote: > We are using CakePHP 2.2.1 on Ubun

How to save and retrieve the status of a dropdown menu between views?

2012-09-04 Thread darkangel
Hi, I'm almost finishing my first cake app so I'm fixing some UI issues. Straight to the point: I have a sidebar menu with a dropdown submenu, the folding state is defined by the css class "closed" so my question is how can I save that status to persist between views? Now when I navigate to ano

Re: How to use two view(controller) in a page??

2012-09-04 Thread Mark Wratten
I am assuming you have a route that routes to a specific controller/action, e.g. pages controller, index action. Then in you home page view View/Pages/index.ctp - Welcome to my home page. News Summary> requestAction('/news/summary'); ?> requestAction('users/login'); ?> Then, in your

Re: Cake2 - Bake - Windows

2012-09-04 Thread Eduardo Arruda
When I put "http://localhost/myproject"; It show me this error: " *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 *C:\

Re: Create database table using controller.

2012-09-04 Thread Julien Duhain
Hi veepee, I am having the exact same problem. have you ever found a solution? On Saturday, February 27, 2010 4:46:12 PM UTC+2, veepee wrote: > > Hi All, > > I am new to cakePHP and I've tried googling for this topic but to no > avail. I need to create a database table from controller. May i know

Counts, distincts and hasManys...

2012-09-04 Thread designv...@gmail.com
Hi there, I've been away from Cake for a bit and am coming back to a project and am scratching my head with this one... I have the following set up: Alumni -> hasMany -> Courses The alumni rows have a 'checked' field and courses have a 'year' field. I need to get the distinct years from cours

Re: Cake2 - Bake - Windows

2012-09-04 Thread Eduardo Arruda
No no , myproject folder is an empty folder. I correctly set cake in system variables, because if I digit "cake" in cmd it show me cake painel. The problem is when I create my bake on myproject folder and then try to access "http://localhost/myproject"; is showing me a error on certain line , abo

Re: Cake2 - Bake - Windows

2012-09-04 Thread Yasir Arafat Hasib
I setup in System Variables -> C:\xampp\htdocs\*Cake*\lib\Cake\Console; Your console may not be on Cake? It may be *myproject* On Tue, Sep 4, 2012 at 7:54 PM, Eduardo Arruda wrote: > What I want to do is using the core and app folders separated. > > I want to create all of my projects with the

Re: Cake2 - Bake - Windows

2012-09-04 Thread Eduardo Arruda
What I want to do is using the core and app folders separated. I want to create all of my projects with the same core. But is showing me an error. Example: I setup in System Variables -> C:\xampp\htdocs\Cake\lib\Cake\Console; I want to create my project in C:\xampp\htdocs\myproject So, i go o

Re: cakephp 2.2.1 installation process in windows xp

2012-09-04 Thread Yasir Arafat Hasib
Hello, I am sending you some document hope it will help you a lot *Cakephp beginners installation steps* http://arafats.info/cake-php-tutorial/ *Cakephp baking on windows platform* http://arafats.info/cakephp-cake-bake-on-windows/ *Cakephp baking on Linux platform* http://arafats.info/cake-bak

Re: Cake2 - Bake - Windows

2012-09-04 Thread Yasir Arafat Hasib
Hello, I am sending you some document hope it will help you a lot *Cakephp beginners installation steps* http://arafats.info/cake-php-tutorial/ *Cakephp baking on windows platform* http://arafats.info/cakephp-cake-bake-on-windows/ *Cakephp baking on Linux platform* http://arafats.info/cake-bake

Re: Cake2 - Bake - Windows

2012-09-04 Thread Eduardo Arruda
Ok , I edited system path (php path and cakepath) I little difference between documentation. Instead of - C:\xampp\htdocs\cakephp\Cake\lib\Console; I putC:\xampp\htdocs\cakephp\Cake\lib\Cake\Console; Now, i need to put core in htdocs\cakephp\Cake , correct? Em terça-feira, 4 de setembro d

Re: Function isOwnedBy

2012-09-04 Thread Mohammad Samir
Hi there, looks like you did a good job establishing your authentication mecanism, but you don't accually do any thing with these functions, how would it know. you're supposed to use the function isAuthorized that's in your Post controller in each action you like to give some role restrictions,

Re: CakePdf - How To Start?

2012-09-04 Thread thosfelt
I've only had luck downloading, tried setting download to false and giving it a path and filename, but that only displayed the file in the browser. On Sunday, September 2, 2012 4:52:21 PM UTC-4, elogic wrote: > > I'm not sure, I would expect it can be done however depending on the > engine you a

Re: cakephp 2.2.1 installation process in windows xp

2012-09-04 Thread Sajan Diwakar
You can check the following link for the detail steps. http://book.cakephp.org/2.0/en/index.html On Tue, Sep 4, 2012 at 10:55 AM, PMR wrote: > > Hi Mohammad, > > Thankyou for your response, I am going to use the > system for development purpose only, and it is windows

Re: Cakephp Print pdf

2012-09-04 Thread Ly Dara
Dear Mr. I will post the code tonight i am really sorry. Best Regard, Dara, On Tue, Sep 4, 2012 at 2:50 PM, Mike Griffin wrote: > On Tue, Sep 4, 2012 at 1:38 AM, Ly Dara wrote: > > Dear All, > > > > I want to send data from invoice view with ajax > > > > and then all the the data will calcul

Re: Cakephp Print pdf

2012-09-04 Thread Mike Griffin
On Tue, Sep 4, 2012 at 1:38 AM, Ly Dara wrote: > Dear All, > > I want to send data from invoice view with ajax > > and then all the the data will calculate in controller function > > and after controller process finish i will generate a pop up page for > preview because I am make preview invoice.

Re: Cake2 - Bake - Windows

2012-09-04 Thread Tilen Majerle
Like you said..you need to edit system paths :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/9/4 Eduardo Arruda > Hello guys, > > First of all I'm having trouble to baking on Cake2. > > I opened this topic to learn the "how to". > > So, What I need to do first? Edit system variables? P