Re: Users table

2008-05-24 Thread Changoso
is this the same or uses ACLBehaivor? On 25 mayo, 00:58, Changoso <[EMAIL PROTECTED]> wrote: > Hello! > > I just downloaded the new cakephp 1.2.x version and i hear it now > comes with some libs for making the authorization automaticlly > > I mean, make a users table and it will automaticlly work

Users table

2008-05-24 Thread Changoso
Hello! I just downloaded the new cakephp 1.2.x version and i hear it now comes with some libs for making the authorization automaticlly I mean, make a users table and it will automaticlly work with permissions. I've quick-looked for some tutorials but all i find is 2007 tutorials which i believ

how to make this statement $session->write('Config.language', $locale); work in view ?

2008-05-24 Thread robert123
I have a multi language website with caching At the view there is some no cache tag to record which locale the user is currently in and it has to be stored in the session. So I need to store data into session at the view page, Strangely this statement works $session->read('Config.language');

Re: FindAll and multi-record form "convention over configuration" right?

2008-05-24 Thread Jonathan Snook
> echo $form->input("$i.time"); > echo $form->input("$i.category_id"); Have you tried, echo $form->input("ModelName.field_name.$i"); I believe this will return everything as an array on the backend that you can loop through. Mind you, you may have to fill the value in for those manually. --~

Re: temporarily change locale to send mail?

2008-05-24 Thread b logica
I got this to work by changing the language in the MembersController before calling the requestAction for Users. I guess it didn't work before because requestAction is kind of special. However, though I'm resetting the language back to the original right after that, the view presented to the brows

how to include use session component in the view, when the view is cache

2008-05-24 Thread robert123
hi, I need to use the session component in the view, but the view is cached, hence it will not go to the controller, in the view there is nocache tag, in between the nocache tag, there is some code where I need to store some data into the session, but I am not sure how to call the session compon

Re: When to make a custom model/datasource?

2008-05-24 Thread b logica
I think it'd be better to create components through which to access these services. On Sat, May 24, 2008 at 1:58 PM, the_woodsman <[EMAIL PROTECTED]> wrote: > > Hi Bakers, > > I'm facing a design decision and I'd like to know people's opinions. > > In my new project, I'm going to use various thir

Re: how to write data into session in the view

2008-05-24 Thread robert123
Thank you for the reply, I dont have much choice regarding this, I know it is a bad place to write session data in the view But because the this is a multilanguage website with caching, hence it will not goes to the controller, but at the view there is some no cache tag to record which locale t

Re: Set::matches and regexp question

2008-05-24 Thread b logica
Just a guess: Set uses XPath expressions, which require doubling the braces: {{4}} On Sat, May 24, 2008 at 4:50 PM, ianh <[EMAIL PROTECTED]> wrote: > > I came across the new Set::matches method. Its just genius so kudos to > whoever came up with that. Obviously there aren't many examples around >

Re: how to write data into session in the view

2008-05-24 Thread b logica
I doubt that the view is the best place for this. Do you have a compelling reason? Maybe there's a way to do what you want in the controller. Also, are you sure you want 'Config.language'? Unless you're setting the locale, you really should choose a different name, unless you're not using Cake's

temporarily change locale to send mail?

2008-05-24 Thread b logica
My Users controller sends out an email with a login & password when an admin enables a member, who can specify a language of choice for communications. Thus, I'd like to be able to switch the locale, regardless of whatever the admin is using, just for this email. Actually, there are several places

Re: how to write data into session in the view

2008-05-24 Thread robert123
I am trying to write some data into the session object at the view, below is the statement, but it will not write into it session, anyone can help? Thanks On May 25, 8:28 am, robert123 <[EMAIL PROTECTED]> wrote: > Hi, > > I am trying to write some data into the session object at the view, >

how to write data into session in the view

2008-05-24 Thread robert123
Hi, I am trying to write some data into the session object at the view, below is the statement, but it will write into it session, anyone can help? Thanks $session->write('Config.language', 'data'); www.generics.ws www.genericsmed.com --~--~-~--~~~---~--~~ You

Re: FindAll and multi-record form "convention over configuration" right?

2008-05-24 Thread Marcelius
For my project I did create 2 convert functions: One dat converts the array returned from findAll methods to {Model}.{n}.{Field}, and one visa versa. I've made this on 1.2.6311 and don't know what changes have been regarding this but still works for me... I too had some problems with the formhelp

Set::matches and regexp question

2008-05-24 Thread ianh
I came across the new Set::matches method. Its just genius so kudos to whoever came up with that. Obviously there aren't many examples around - mostly in the Containable test so Im a bit stuck on just how good it can be. One of the examples shows that Set::matches('/Comment[text=/cakephp/ i', $da

Re: Sluggable behavior and recent cake 1.2 from svn

2008-05-24 Thread Sam Sherlock
works fine for me using latest svn - S 2008/5/24 [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Hi, > i use the Sluggable behavior which worked mike a charm until the very > last svn update from CakePHP 1.2 (around may 22th 2008) i made - it > fails, silently which is worse - no slug created. Has any

When to make a custom model/datasource?

2008-05-24 Thread the_woodsman
Hi Bakers, I'm facing a design decision and I'd like to know people's opinions. In my new project, I'm going to use various third party services, including photo stores like Flickr, Picasa, Facebook, and Payment Gateways too. I'm trying to decide which of the above kinds of services are best im

Re: FindAll and multi-record form "convention over configuration" right?

2008-05-24 Thread Reza Muhammad
On May 24, 2008, at 8:52 PM, troyp wrote: > > I'm just learning and I don't get it. I am trying to follow the > concept of convention over configuration and finding issues. > > I want a multi-record form so I perform a findAll(...) to get the > data. > > Then I make the form calls > > echo $fo

Re: configure ------- please help !!!!!!!!!

2008-05-24 Thread Reza Muhammad
Hi. On May 24, 2008, at 1:32 AM, adroit wrote: > > Hello All, > > I am new to CakePHP framework and I am having a tough time with the > correct installtion. > So far I get to see the default page after installation > - > CakePHP release information is on CakeForge > Read the release notes an

Re: fill dropdown by cake from database model???

2008-05-24 Thread Reza Muhammad
On May 24, 2008, at 12:54 PM, vishal wrote: > ... snip.. > > I have two models(database table):User,Message > > I want place a drop down in my Message view file as : > > select('messageto', $options=array(), null, array(), > '-- > select member--'); ?> > I want to fills this drop down from my anot

Re: Better web hosts for cakephp

2008-05-24 Thread Novice Programmer
apthost has worked well for me for cake applications. Thanks. On Sat, May 24, 2008 at 11:17 AM, k10 <[EMAIL PROTECTED]> wrote: > > Hi All, > > I am in the process of finding a webhost for my cake-app. Its a > commercial (ecommerce app) so reliability n speed are the imp > criteria. I was wonderi

Re: Problems realizing a User/Group system with ACL

2008-05-24 Thread Prophet
How is it easy when my users/groups are ordered hirarchical? As written above i thought of that but it seemed the AclBehaviour is to limited to realize something like that. Or where you thinking of writing your own behaviour? On 23 Mai, 23:43, francky06l <[EMAIL PROTECTED]> wrote: > If your group

Re: Is creating a digg clone hard for you? How hard?

2008-05-24 Thread Joaquín Windmüller
The only useful thing about bringin a "implement digg with CakePHP" is that bakery should be more social an less editorial like it is now. On May 24, 4:52 pm, francky06l <[EMAIL PROTECTED]> wrote: > Was hoping "Kube" would be linked somehow to "Cube" data mining > etc ... pf ... disapointed >

Better web hosts for cakephp

2008-05-24 Thread k10
Hi All, I am in the process of finding a webhost for my cake-app. Its a commercial (ecommerce app) so reliability n speed are the imp criteria. I was wondering which are the better webhosts (dedicated and shared hosts both) and what your experiences have been regarding the same. I am more incline

FindAll and multi-record form "convention over configuration" right?

2008-05-24 Thread troyp
I'm just learning and I don't get it. I am trying to follow the concept of convention over configuration and finding issues. I want a multi-record form so I perform a findAll(...) to get the data. Then I make the form calls echo $form->input("$i.time"); echo $form->input("$i.category_id");

Re: TortoiseCVS

2008-05-24 Thread [EMAIL PROTECTED]
to have the last version of the cake directory https://svn.cakephp.org/repo/branches/1.2.x.x/cake/l On May 23, 9:26 am, Andraž <[EMAIL PROTECTED]> wrote: > Hello! > > How can I checkout from SVN with TortoiseCVS. I'm never did this. Whic > password, username and protocol I must use? > > Regards A

Re: Is creating a digg clone hard for you? How hard?

2008-05-24 Thread Eduardo
sorry, that's bullshit On May 23, 2:21 am, Raistlin Majere <[EMAIL PROTECTED]> wrote: > Take a look at the source code and the number of files of phpdug. > > click choose download at > > http://www.kubelabs.com/phpdug/ > > and select 1.4.2 > > How much time and money is needed to create a phpdug?

Sluggable behavior and recent cake 1.2 from svn

2008-05-24 Thread [EMAIL PROTECTED]
Hi, i use the Sluggable behavior which worked mike a charm until the very last svn update from CakePHP 1.2 (around may 22th 2008) i made - it fails, silently which is worse - no slug created. Has anyone any clue why or what in the recent updates of Cake can casue this ? Raphaele --~--~-~

Re: Problems displaying an image from a controller action using readfile()

2008-05-24 Thread Dave J
Hi Lauren, try setting $this->autoRender = false (instead of setting the layout to empty), this way Cake won't send anything out to the browser. also, you might want to try: header('Content-Type: image/jpeg'); (notice the 'jpeg' instead of 'jpg') See if that helps Dave On May 23, 9:52 pm

Looking for a Cake PHP freelancer

2008-05-24 Thread Novice Programmer
Hello, I am looking for a cake php freelancer, who can work directly with me on a site which already is almost say 20% complete. Please contact me directly(lets not spam the group), if you are interested. -- Thanks & Regards, Novice (http://ishuonweb.wordpress.com/). --~--~-~--~~---

Re: Help me friends(dropdown issue)

2008-05-24 Thread francky06l
What is the relation between the Message and User (I mean in terms of model) ? Anyway, you can use the find('list') on the User model. $users = $this->User->find('list'); // if you want to retrieve the fields id => name $this->set('users', $users); then in your view echo $form->input('messageto

Re: Plugin Model Association Problem

2008-05-24 Thread francky06l
Can you pass your model definition code ? I have the same kind of plugin and not much problems, maybe I declare the association in different way. I set the plugin name into the className parameter ie : belongTo => array('Profile' => array('className' => 'user.Profile') Wich cake version are