GitHub

2014-11-11 Thread Anand Muralidaran
Hello there,

Folks I am working on a prospective business project to build a global 
social media platform for the investment community.

I would like to hear from working partners who are exceptionally good in UX 
Design, know how to use modeling tools like GitHub and help strategizing 
RWD strategies for multiple devices and form factors.

Please reach out to me if this interests you or would like to partner.

Rgds
Anand

-- 
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/d/optout.


plugins for uploading images/ files in cakephp v2.0

2011-10-28 Thread Anand Ramamurthy
Hello,

I was curious if there are any recommendations for CakePHP v2.0
plugins for uploading, resizing images to the server. I looked at some
of the implementations like Uploader and Media Plugins but encountered
problems with them. It could be that they were written for v1.3
It would be great if somebody could suggest a plugin for v2.0

Thanks,

Anand

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Authentication Authorization in CakePHP 2.0

2011-10-26 Thread Anand Ramamurthy
Hello,

I am a CakePHP newbie. I am implementing login features using
Authentication Component (User model). It works good. However I am
facing problem in Authorization and Statefulness features. Once I am
logged in I am unable to browse to other pages as user seems to be not
logged in.

This is my component variable in AppController:

public $components = array(
'Session',
'Auth' = array(
'loginAction' = array('controller' = 'users', 'action'
= 'login'),
'loginRedirect' = array('controller' = 'users', 'action'
= 'index'),
'logoutRedirect' = array('controller' = 'home', 'action'
= 'index'),
'authError' = 'Did you really think you are allowed to
see that?',
'authenticate' = array(
'Form' = array('fields' = array('username' =
'email', 'password' = 'password')),
'Basic' = array('userModel' = 'Users.User', 'fields'
= array('username' = 'email', 'password' = 'password'))
 ),
'authorize' = array('Controller')
)
);

//AppController beforeFilter
function beforeFilter() {

$this-Auth-autoRedirect = false;
$this-Auth-userModel = 'User';
$this-Auth-allow('index', 'view');
}

//AppController isAuthorized
public function isAuthorized($user) {

if (isset($user['role'])  $user['role'] == 'admin') {
 return true; //Admin can access every action
}
return false; // The rest don't
}

The user I log in has the role of admin set in DB. The user is able
to login properly get redirected to index and then I try to use the
edit feature in the UsersController for which he should be authorized
but apparently instead I get redirected to login page again with the
message You are not authorized!

I would be grateful if somebody could chime in and help or provide
pointers as to what I could be doing wrong?

Thanks in advance.

Anand

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Authentication Authorization in CakePHP 2.0

2011-10-26 Thread Anand Ramamurthy
After much debugging I realized that my 'Session.timeout' was set to 0
hence my session data was being dropped for every request. once I set
it to a 3600, the sessions remained and authorizations were succesful
But now this leads to another quandary. If I set the timeout to a
value and the user closes the browser without logging out, I would
like his/ her session to end and not remain because it hasnt reached
its timeout. How can I accomplish this ? Any ideas?

Thanks,

Anand

On Oct 26, 9:27 pm, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
 Do you have any auth code in the users controller? Have you pit a debug 
 statement inside isAuthorized just before returning true to check that it is 
 actually passing?

 Jeremy Burns
 Class Outfit

 http://www.classoutfit.com

 On 26 Oct 2011, at 22:15, Anand Ramamurthy wrote:







  Hello,

  I am a CakePHP newbie. I am implementing login features using
  Authentication Component (User model). It works good. However I am
  facing problem in Authorization and Statefulness features. Once I am
  logged in I am unable to browse to other pages as user seems to be not
  logged in.

  This is my component variable in AppController:

  public $components = array(
         'Session',
         'Auth' = array(
             'loginAction' = array('controller' = 'users', 'action'
  = 'login'),
             'loginRedirect' = array('controller' = 'users', 'action'
  = 'index'),
             'logoutRedirect' = array('controller' = 'home', 'action'
  = 'index'),
             'authError' = 'Did you really think you are allowed to
  see that?',
             'authenticate' = array(
                 'Form' = array('fields' = array('username' =
  'email', 'password' = 'password')),
                 'Basic' = array('userModel' = 'Users.User', 'fields'
  = array('username' = 'email', 'password' = 'password'))
              ),
             'authorize' = array('Controller')
         )
     );

  //AppController beforeFilter
  function beforeFilter() {

         $this-Auth-autoRedirect = false;
         $this-Auth-userModel = 'User';
         $this-Auth-allow('index', 'view');
     }

  //AppController isAuthorized
  public function isAuthorized($user) {

         if (isset($user['role'])  $user['role'] == 'admin') {
              return true; //Admin can access every action
         }
         return false; // The rest don't
     }

  The user I log in has the role of admin set in DB. The user is able
  to login properly get redirected to index and then I try to use the
  edit feature in the UsersController for which he should be authorized
  but apparently instead I get redirected to login page again with the
  message You are not authorized!

  I would be grateful if somebody could chime in and help or provide
  pointers as to what I could be doing wrong?

  Thanks in advance.

  Anand

  --
  Our newest site for the community: CakePHP Video 
  Tutorialshttp://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
  others with their CakePHP related questions.

  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.com For more options, visit this group 
  athttp://groups.google.com/group/cake-php

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Authentication Authorization in CakePHP 2.0

2011-10-26 Thread Anand Ramamurthy
Bank Sites are a perfect example. So for example if you login to say
bankofamerica.com and close the browser without logging out. Your
session is destroyed and you have to sign back in. I was wanting to
replicate that functionality. Closing the browser implies losing your
signed in session and you have to sign back in again to access your
profile.
That is what I desired. That is why I had set Session.timeout=0.
Stateless authentication implies that I would have to store the user
cred somewhere in cookie and signin for every page. I was wanting to
keep the session alive but only till the browser is open. as soon as
browser is closed. the session is lost.

Thanks,

Anand

On Oct 26, 10:24 pm, Jeremy Burns | Class Outfit
jeremybu...@classoutfit.com wrote:
 I don't think you can. If the user browses away from the site the server 
 won't know so can't do anything. Why is this a problem? If the user comes 
 back while the session is still valid he'll just be logged back in 
 automatically. If its a secure system (say banking) and there's a large 'log 
 out' button and the user doesn't press it, he deserves to have his account 
 plundered.

 Have you looked at stateless authentication?

 Jeremy Burns
 Class Outfit

 http://www.classoutfit.com

 On 27 Oct 2011, at 06:11, Anand Ramamurthy wrote:







  After much debugging I realized that my 'Session.timeout' was set to 0
  hence my session data was being dropped for every request. once I set
  it to a 3600, the sessions remained and authorizations were succesful
  But now this leads to another quandary. If I set the timeout to a
  value and the user closes the browser without logging out, I would
  like his/ her session to end and not remain because it hasnt reached
  its timeout. How can I accomplish this ? Any ideas?

  Thanks,

  Anand

  On Oct 26, 9:27 pm, Jeremy Burns | Class Outfit
  jeremybu...@classoutfit.com wrote:
  Do you have any auth code in the users controller? Have you pit a debug 
  statement inside isAuthorized just before returning true to check that it 
  is actually passing?

  Jeremy Burns
  Class Outfit

 http://www.classoutfit.com

  On 26 Oct 2011, at 22:15, Anand Ramamurthy wrote:

  Hello,

  I am a CakePHP newbie. I am implementing login features using
  Authentication Component (User model). It works good. However I am
  facing problem in Authorization and Statefulness features. Once I am
  logged in I am unable to browse to other pages as user seems to be not
  logged in.

  This is my component variable in AppController:

  public $components = array(
         'Session',
         'Auth' = array(
             'loginAction' = array('controller' = 'users', 'action'
  = 'login'),
             'loginRedirect' = array('controller' = 'users', 'action'
  = 'index'),
             'logoutRedirect' = array('controller' = 'home', 'action'
  = 'index'),
             'authError' = 'Did you really think you are allowed to
  see that?',
             'authenticate' = array(
                 'Form' = array('fields' = array('username' =
  'email', 'password' = 'password')),
                 'Basic' = array('userModel' = 'Users.User', 'fields'
  = array('username' = 'email', 'password' = 'password'))
              ),
             'authorize' = array('Controller')
         )
     );

  //AppController beforeFilter
  function beforeFilter() {

         $this-Auth-autoRedirect = false;
         $this-Auth-userModel = 'User';
         $this-Auth-allow('index', 'view');
     }

  //AppController isAuthorized
  public function isAuthorized($user) {

         if (isset($user['role'])  $user['role'] == 'admin') {
              return true; //Admin can access every action
         }
         return false; // The rest don't
     }

  The user I log in has the role of admin set in DB. The user is able
  to login properly get redirected to index and then I try to use the
  edit feature in the UsersController for which he should be authorized
  but apparently instead I get redirected to login page again with the
  message You are not authorized!

  I would be grateful if somebody could chime in and help or provide
  pointers as to what I could be doing wrong?

  Thanks in advance.

  Anand

  --
  Our newest site for the community: CakePHP Video 
  Tutorialshttp://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organdhelp 
  others with their CakePHP related questions.

  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.com For more options, visit this group 
  athttp://groups.google.com/group/cake-php

  --
  Our newest site for the community: CakePHP Video 
  Tutorialshttp://tv.cakephp.org
  Check out the new CakePHP Questions sitehttp://ask.cakephp.organd help 
  others with their CakePHP related questions.

  To unsubscribe from this group, send email to
  cake-php+unsubscr...@googlegroups.com For more options, visit this group 
  athttp://groups.google.com/group/cake-php

-- 
Our newest site

Re: convert to javascript to cake

2011-04-07 Thread anand ghaywankar
You need to check thisproperly.
onmouseover=MM_swapImage('
Apply','','images/adminControls/
 button_apply_hover.jpg',1)


On 7 April 2011 12:34, Master Ram...! ramganga...@gmail.com wrote:

 i want to display image when mouuseover. on other image


 On Thu, Apr 7, 2011 at 10:54 AM, andy_the ultimate baker 
 anandghaywankar...@gmail.com wrote:

 what exaxtly u wants to do?
 javascript is good for that.


 On Apr 7, 10:17 am, Master Ram ramganga...@gmail.com wrote:
  Hi to all
 
  a href=javascript:void(); class=applybutton
  onmouseout=MM_swapImgRestore()
  onmouseover=MM_swapImage('Apply','','images/adminControls/
  button_apply_hover.jpg',1)
 
  /a
 
  how to write this thing in CakePHP

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php




 --
 Master Ram.
 Founder n Director of rgPlanets Pvt. Ltd.

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.com For more options, visit this group
 at http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


Re: Change the default layout

2011-01-19 Thread anand ghaywankar
hi there,
when u r trying to modifly default layout u need to find file in defaul
layout file in app folder, here is the path
*cakephp/app/views/layouts*. find the file default.ctp and make changes,

i hope this pay work for u. let me know about the result



On 20 January 2011 07:47, opike hastapast...@gmail.com wrote:

 Figured this out...I was modifying the correct file but in the wrong
 place. The changes are now showing up.

 On Jan 19, 6:13 pm, opike hastapast...@gmail.com wrote:
  I'm trying to add a link and modify the text CakePHP: the rapid
  development php framework that appears in the default layout. I
  modified the file app/views/layouts/default.ctp but the changes did
  not show up.
 
  I then added the line
  var $layout = 'default';
  to the controller file (users_controller.php), but the changes were
  still not visible.

 --
 Our newest site for the community: CakePHP Video Tutorials
 http://tv.cakephp.org
 Check out the new CakePHP Questions site http://ask.cakephp.org and help
 others with their CakePHP related questions.


 To unsubscribe from this group, send email to
 cake-php+unsubscr...@googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php


-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php


VALIDATION

2009-12-07 Thread anand angadi
Hi all,

I have 2 model called User,user_phone...I have imported user_phone in User
model...and I have done basic Add,Edit,Delete functionality...

Now the problem is...

In my view page I have input  fields as username,password which belongs to
user table and one more input field as number which belongs to user_phone...

I am getting validation for username and password but not getting the
validation for number as it is in different table and model...

How can I solve this...?

Cheers:
Anand

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: VALIDATION

2009-12-07 Thread anand angadi
HI sijo,

Thanks for your reply...Its working...

Cheers:
Anand


On Tue, Dec 8, 2009 at 8:55 AM, sijo jose jose.s...@gmail.com wrote:

 Hi Anand,

 If you are trying to Save both user and user_phone u might be using
 saveAll.

 So for validating just use

 $this-User-saveAll('User',array('validation'='first'));

 This will validate both your models.



 On Mon, Dec 7, 2009 at 5:31 PM, anand angadi anuang...@gmail.com wrote:

 Hi all,

 I have 2 model called User,user_phone...I have imported user_phone in User
 model...and I have done basic Add,Edit,Delete functionality...

 Now the problem is...

 In my view page I have input  fields as username,password which belongs to
 user table and one more input field as number which belongs to user_phone...

 I am getting validation for username and password but not getting the
 validation for number as it is in different table and model...

 How can I solve this...?

 Cheers:
 Anand

 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.


 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en




 --
 Sijo Jose Chakramakkil

  Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Here is my database schema,please peovide me model for his.

2009-12-02 Thread anand angadi
Hi John,

Here I am attatching my database schema.So can you provide me the sample
model.

Cheers:
Anand

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Here is my database schema,please peovide me model for his.

2009-12-02 Thread anand angadi
Hi john,

No... here is table script attached... please take a look at it...u wil get
an idea...

Cheers:
Anand



On Wed, Dec 2, 2009 at 4:46 PM, John Andersen j.andersen...@gmail.comwrote:

 Looks confusing, sorry :)

 Trying to transform your tables into a workable ER model (not CakePHP
 model):

 A user may have one or more phone numbers
 A user may have one or more addresses
 Each phone number belongs to one user
 Each address belongs to one user
 An address may have one or more details
 A detail belongs to one address

 Tables:
 users
 - id (primary key, auto number)
 - other necessary columns that you may require.
 - created
 - modified

 phonenumbers
 - id (primary key, auto number)
 - user_id (foreign key to table users)
 - other necessary columns that you may require.
 - created
 - modified

 addresses
 - id (primary key, auto number)
 - user_id (foreign key to table users)
 - other necessary columns that you may require.
 - created
 - modified

 addressdetails
 - id (primary key, auto number)
 - address_id (foreign key to table addresses)
 - other necessary columns that you may require.
 - created
 - modified

 Do I understand your schema correctly?
   John

 On Dec 2, 11:11 am, anand angadi anuang...@gmail.com wrote:
  Hi John,
 
  Sorry here its attached now...
 
  Cheers:
  Anand
 
   shcema.bmp
  1299KViewDownload

 Check out the new CakePHP Questions site http://cakeqs.org and help others
 with their CakePHP related questions.

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


main.sql
Description: Binary data


Re: How to get two input fields in same line?

2009-12-02 Thread anand angadi
Hi,
This may help you...

table width=100% border=0 cellspacing=4 cellpadding=0
class=content
  tr
td align=right class=contentUserName : nbsp;/td
td?php echo $form-input('username',array('label'=false)); ?/td
td align=right class=contentPassword : nbsp;/td
td?php echo $form-input('password',array('label'=false)); ?/td
  /tr
/table

Cheers:
Anand



On Thu, Dec 3, 2009 at 11:05 AM, cake dhanya@gmail.com wrote:

 Hi all

 How can I get two input fields in same line in cakephp?
 By default each input field are coming in seperate line.
 How can we put a space and bring it in same line.
 Please help..

 Thanking You

 Check out the new CakePHP Questions site http://cakeqs.org and help others
 with their CakePHP related questions.

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Here is my database schema,please peovide me model for his.

2009-12-02 Thread anand angadi
Hi john,

Thanks a lot for your valuable result...will do accordingly...

Cheers:
Anand

On Thu, Dec 3, 2009 at 11:52 AM, John Andersen j.andersen...@gmail.comwrote:

 Sorry to say Anand, but your schema does not conform to what CakePHP
 expects, which makes it difficult to make it work with CakePHP,
 without specifying a lot of information.

 Suggest you rethink your schema, so that:
 1) It conforms to CakePHP (table names plural, foreign keys equal
 foreign key table name singular + underscore + 'id', etc.;
 2) Makes use of primary key auto numbering;
 3) Each table has its own primary key (id) - not depending on another
 tables primary key (id);
 4) Tinyint is only for boolean columns (true/false)!

 This will make it a lot easier to use by CakePHP and for the future
 maintenance!

 I myself would not consider using your schema! Use my previous post as
 a base for replanning your schema.
 Enjoy,
   John

 On Dec 3, 7:42 am, anand angadi anuang...@gmail.com wrote:
  Hi john,
 
  No... here is table script attached... please take a look at it...u wil
 get
  an idea...
 
  Cheers:
  Anand
 
  On Wed, Dec 2, 2009 at 4:46 PM, John Andersen j.andersen...@gmail.com
 wrote:
 
   Looks confusing, sorry :)
 
   Trying to transform your tables into a workable ER model (not CakePHP
   model):
 
   A user may have one or more phone numbers
   A user may have one or more addresses
   Each phone number belongs to one user
   Each address belongs to one user
   An address may have one or more details
   A detail belongs to one address
 
   Tables:
   users
   - id (primary key, auto number)
   - other necessary columns that you may require.
   - created
   - modified
 
   phonenumbers
   - id (primary key, auto number)
   - user_id (foreign key to table users)
   - other necessary columns that you may require.
   - created
   - modified
 
   addresses
   - id (primary key, auto number)
   - user_id (foreign key to table users)
   - other necessary columns that you may require.
   - created
   - modified
 
   addressdetails
   - id (primary key, auto number)
   - address_id (foreign key to table addresses)
   - other necessary columns that you may require.
   - created
   - modified
 
   Do I understand your schema correctly?
 John
 
   On Dec 2, 11:11 am, anand angadi anuang...@gmail.com wrote:
Hi John,
 
Sorry here its attached now...
 
Cheers:
Anand
 
 shcema.bmp
1299KViewDownload
 
   Check out the new CakePHP Questions sitehttp://cakeqs.organd help
 others
   with their CakePHP related questions.
 
   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.comcake-php%2bunsubscr...@googlegroups.com
 cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.comFor
 more options, visit this group at
  http://groups.google.com/group/cake-php?hl=en
 
 
 
   main.sql
  5KViewDownload

 Check out the new CakePHP Questions site http://cakeqs.org and help others
 with their CakePHP related questions.

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Unable to insert more than 3 tables

2009-12-01 Thread anand angadi
Hi All,

I am cakephp learner...Am not able to insert more than 3 tables...

Please help me on this...

Thanks:
Anand

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Unable to insert more than 3 tables

2009-12-01 Thread anand angadi
hi john,

Sorry for incomplete requirement.

Answers for ur questions.

1I am registring new user.Here I am inserting in to 4 table.

2 In model I am using hasMany as below...here table are...
user,user_phone,user_address_details,
var $hasMany = array(
 'user_phone' = array(
 'className' = 'user_phone',
 'foreignKey' = 'id',
 'conditions' = array('user_phone.id' = '0'),
 'dependent'= true),
'user_address_details'=array(
'className' = 'user_address_details','foreignKey' =
'address')
);


but I want to insert in to user_address as wel. so I modified my code as...
var $hasMany = array(
 'user_phone' = array(
 'className' = 'user_phone',
 'foreignKey' = 'id',
 'conditions' = array('user_phone.id' = '0'),
 'dependent'= true),
'user_address_details'=array(
'className' = 'user_address_details','foreignKey' =
'address'),
* 'user_address'=array(
'className' = 'user_address_details','foreignKey' = 'id')*
);
for this am getting error as bello point...

3
Not Found

*Error: * The requested address *'/'* was not found on this server.


this is the actual problem...

Thanks:

Anand


On Wed, Dec 2, 2009 at 11:47 AM, John Andersen j.andersen...@gmail.comwrote:

 Please specify:
 1) What you are trying to do within the CakePHP framework.
 2) Show the code (partly) that you are trying to use/develop.
 3) Show the result/errors that you receive doing you work.

 Then we will better be able to assist you ;)
 Enjoy,
   John

 On Dec 2, 7:25 am, anand angadi anuang...@gmail.com wrote:
  Hi All,
 
  I am cakephp learner...Am not able to insert more than 3 tables...
 
  Please help me on this...
 
  Thanks:
  Anand

 Check out the new CakePHP Questions site http://cakeqs.org and help others
 with their CakePHP related questions.

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


This is the actual error message after debug = 2 in core.php

2009-12-01 Thread anand angadi
On Wed, Dec 2, 2009 at 12:00 PM, anand angadi anuang...@gmail.com wrote:

 hi john,

 Sorry for incomplete requirement.

 Answers for ur questions.

 1I am registring new user.Here I am inserting in to 4 table.

 2 In model I am using hasMany as below...here table are...
 user,user_phone,user_address_details,
 var $hasMany = array(
  'user_phone' = array(
  'className' = 'user_phone',
  'foreignKey' = 'id',
  'conditions' = array('user_phone.id' = '0'),
  'dependent'= true),
 'user_address_details'=array(
 'className' = 'user_address_details','foreignKey' =
 'address')
 );


 but I want to insert in to user_address as wel. so I modified my code as...
 var $hasMany = array(
  'user_phone' = array(
  'className' = 'user_phone',
  'foreignKey' = 'id',
  'conditions' = array('user_phone.id' = '0'),
  'dependent'= true),
 'user_address_details'=array(
 'className' = 'user_address_details','foreignKey' =
 'address'),
 * 'user_address'=array(
 'className' = 'user_address_details','foreignKey' = 'id')
 *
 );
 for this am getting error as bello point...

 3
 Missing Database Table

 *Error: * Database table *user_addresses* for model *user_address* was not
 found.

 *Notice: * If you want to customize this error message, create
 app\views\errors\missing_table.ctp


 this is the actual problem...

 Thanks:

 Anand


 On Wed, Dec 2, 2009 at 11:47 AM, John Andersen j.andersen...@gmail.comwrote:

 Please specify:
 1) What you are trying to do within the CakePHP framework.
 2) Show the code (partly) that you are trying to use/develop.
 3) Show the result/errors that you receive doing you work.

 Then we will better be able to assist you ;)
 Enjoy,
   John

 On Dec 2, 7:25 am, anand angadi anuang...@gmail.com wrote:
  Hi All,
 
  I am cakephp learner...Am not able to insert more than 3 tables...
 
  Please help me on this...
 
  Thanks:
  Anand

 Check out the new CakePHP Questions site http://cakeqs.org and help
 others with their CakePHP related questions.

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en




Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Unable to insert more than 3 tables

2009-12-01 Thread anand angadi
Hi John,

Thanks for all your reply. wil try it and let u know my status...

Thanks:
Anand





On Wed, Dec 2, 2009 at 12:48 PM, John Andersen j.andersen...@gmail.comwrote:

 Ok, just saw your real error in another thread :)
 Check your model names, the association names, the table names, that
 they all are correct.
 Enjoy,
   John
 [snip]

 Check out the new CakePHP Questions site http://cakeqs.org and help others
 with their CakePHP related questions.

 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.comcake-php%2bunsubscr...@googlegroups.comFor
  more options, visit this group at
 http://groups.google.com/group/cake-php?hl=en


Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

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 For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en


Re: Global Variable

2009-06-21 Thread Anand

Hi Rick,

Thanks for reply

I have done it this way

Declaring Global Variable:  Configure::write('var_name','var_value');
Reading Global Variable:Configure::read('var_name');

Regards
Anand

On Jun 19, 5:54 pm, Rick will...@gmail.com wrote:
 You can write a new config value or you can define a variable or
 constant in bootstrap.php.

 Rick

 On Jun 19, 8:42 am, Anand anandprakashwankh...@gmail.com wrote:

  Hello All,

  How to define a global variable in CakePHP which i can use anywhere in
  the application.

  Please provide a code sample.

  Waiting for reply

  Anand
--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Global Variable

2009-06-19 Thread Anand

Hello All,

How to define a global variable in CakePHP which i can use anywhere in
the application.

Please provide a code sample.

Waiting for reply

Anand

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Plug in Module development

2009-03-12 Thread Anand

Hello Everybody,

I am rookie in cakephp. I need to develop a application in cakephp
which will

1. Have a user rights module (i.e. Admin will assign some writes to a
user  the user will only be able to access only those functionality
which come under the rights assigned to the user by admin.)

2. I need to develop this project in such a manner that every module
in this project is an plug in.So that
at any given moment the plug in can be added or removed.


I have implemented the point no 1. functionality as per my
understanding  logic.

Looking forward for your reply

Regards
Anand Wankhede

--~--~-~--~~~---~--~~
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
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Please Help me

2007-01-30 Thread anand

Hi all i am new to cakePHP i dont know what to do.i know  normal PHP 
but i dont know how to use the cakePHP.
Please tell me the procedures to install cake php and how to create a 
simple registration form Please give me the sample coding thanks alot


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups Cake 
PHP group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---