Re: Cake Translation Application plugin

2007-11-03 Thread Marcin Domanski aka kabturek
On Nov 4, 8:24 am, julian <[EMAIL PROTECTED]> wrote: > If not I guess i am going to have to write one, any one interested in > helping? I thought about such app some time ago. i have a draft of the db etc So if you really want to write something (and have time to do it ;) contact me so we can thi

Re: Building a forum plug-in

2007-11-03 Thread Marcin Domanski aka kabturek
On Nov 3, 7:23 am, Cheeze <[EMAIL PROTECTED]> wrote: > I've seen many projects with a lot of talk at the beginning but > nothing concrete was done about it. or the codebase wasn't released ;) > Perhaps the guys who really need > should start something first? And if there are people who want mor

Cake Translation Application plugin

2007-11-03 Thread julian
Has any one written a translation application they are willing to share? I would like authorises user to be able to add languages and translations as part of the runtime. If not I guess i am going to have to write one, any one interested in helping? regards Julian --~--~-~--~~--

Re: CSS Path Problem

2007-11-03 Thread Gwoo
Oh, maybe the htaccess files were removed or if you moved files around the htaccess files were missed because they are hidden. Anyway, glad to hear its working with a freshly baked project. --~--~-~--~~~---~--~~ You received this message because you are subscribed

Re: CSS Path Problem

2007-11-03 Thread I Wayan Saryada
I don't know what I've done wrong. After looking for sometime I decided to bake a new project, and It works! :) On Nov 4, 11:07 am, Gwoo <[EMAIL PROTECTED]> wrote: > This is related to AllowOveride None, when it should be All or > mod_rewrite not being enabled. --~--~-~--~~-

ACL Aro multiple parents Cake 1.2

2007-11-03 Thread Pravalitera
Hi, source : https://trac.cakephp.org/ticket/2191 >> Cake's built-in ACL should allow for an ARO to have multiple parents. This >> would make it possible to give permissions based on groups, and have users >> belong to multiple groups. >This is technically possible with the new 1.2 ACL system.

Re: Missing controller - naming error

2007-11-03 Thread Sabot
Works! Thanks for help, just purpose of these $name vars were unclear to me. To be honest, I'm new to cake, frameworks, OO programming, only used to write procedural mess, forgive me my silly questions! =) --~--~-~--~~~---~--~~ You received this message because y

Re: CSS Path Problem

2007-11-03 Thread Gwoo
This is related to AllowOveride None, when it should be All or mod_rewrite not being enabled. --~--~-~--~~~---~--~~ 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@googlegro

Re: Missing controller - naming error

2007-11-03 Thread Gwoo
You seem to be over thinking things. Controller and Model names are CamelCased, So QuickNotesController, var $name = 'QuickNotes', accessible via http://localhost/cake/quick_notes. This would expect by default a model of QuickNote in models/quick_note.php, with var $name = 'QuickNote' and connecte

Re: Missing controller - naming error

2007-11-03 Thread Sabot
Weird.. I was accessing it through http://localhost/cake/quicknotes and after being enlightened by your post, changed path to http://localhost/cake/quick_notes. Now I get: Missing Database Table No Database table for model Quick_Notes (expected quick__notes), create it first. Please note double

CSS Path Problem

2007-11-03 Thread I Wayan Saryada
Hi, I am new to CakePHP Framework. I've baked a new project called galeri and it was created successfully. I deployed the project in my apache webroot folder as "/opt/lampp/htdocs/galeri". I execute it from browser and it just worked. But one thing that I spotted is that the css file is not loade

Re: cache vs Cache?

2007-11-03 Thread Gwoo
Yes. cache() is being replaced by Cache::write(), Cache::read(), Cache::delete(), Cache::clear(); You can set new configurations like Cache::config('myConfig', array('engine'=> 'Memcache')); and then reference them on a per method, like Cache::write($key, $data, 'myConfig'); or for all methods wit

Re: book on cake?

2007-11-03 Thread Adwin Wijaya
for the concept of rails, I suggest you read Rails book ^_^v ... and for tutorials, read IBM tutorial (it is good but not uptodate with the current version, especially in ACL and ACO part) On Nov 4, 5:25 am, housebolt <[EMAIL PROTECTED]> wrote: > There isn't one that I'm aware of. There was

Re: about routing

2007-11-03 Thread Adwin Wijaya
i tried this (on 1.2 pre beta) Router::connect('/*/*', array('controller' =>'posts','action' => 'view')); and it work, it will pass the parameters into the post. > The only problem I see is that it's basically saying that any request > with two parameters like that will go into your posts/view a

Re: CakePHP-powered Forum best structure?

2007-11-03 Thread Gwoo
Create a forum plugin. --~--~-~--~~~---~--~~ 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]

Re: Support for Google APIs?

2007-11-03 Thread Gwoo
None that I know of yet. --~--~-~--~~~---~--~~ 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 PROTECTE

Re: Missing controller - naming error

2007-11-03 Thread Gwoo
are you accessing it with http://localhost/quick_notes? --~--~-~--~~~---~--~~ 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

Re: Missing controller - naming error

2007-11-03 Thread Sabot
Thanks for help, however it doesn't work, still same thing. I tried var $name 'QuickNote', 'Quick_Note' and their prular forms. Nobody have idea? Don't tell me you use mono words only ;) On Nov 3, 3:09 pm, MrTufty <[EMAIL PROTECTED]> wrote: > For the var $name, as far as I'm aware, you can't have

Support for Google APIs?

2007-11-03 Thread __g
Hi, I searched the group and the web to find out if Cake has wrappers (like Zend) for Google APIs like gData, accounts, etc. I could not find much info. Does anyone know about it? If not, what would be the best way to implement them in Cake? Thanks --~--~-~--~~~---

Re: book on cake?

2007-11-03 Thread housebolt
There isn't one that I'm aware of. There was one in the process of being published but it fell apart at the last minute. Most people have trouble initially getting the hang of MVC. You really need to focus on the MVC structure. Read over the "Basic Concepts" section of the manual very carefully.

Re: Open svn branch for 1.2?

2007-11-03 Thread Samuel DeVore
no it was me :P On 11/3/07, nate <[EMAIL PROTECTED]> wrote: > > I can't remember, but I'm pretty sure it's something *you* did. > > On Nov 3, 12:00 pm, "Mariano Iglesias" <[EMAIL PROTECTED]> > wrote: > > Now that's just a teaser for me to ask you what was the first. > > > > Tease. > > > > -MI > >

Re: Open svn branch for 1.2?

2007-11-03 Thread nate
I can't remember, but I'm pretty sure it's something *you* did. On Nov 3, 12:00 pm, "Mariano Iglesias" <[EMAIL PROTECTED]> wrote: > Now that's just a teaser for me to ask you what was the first. > > Tease. > > -MI > > --- > >

cache vs Cache?

2007-11-03 Thread Joel Stein
I know there's a cache() function within basics.php, and I've been learning about the new Cache class. Is the idea that calls to cache() and clearCache() are to be replaced with Cache::write() and Cache::read()? If so, will cache() soon be deprecated? Thanks! --~--~-~--~~-

book on cake?

2007-11-03 Thread Daniel
I am new to cake and I find the tutorials somewhat confusing, is there a book I can get to better understand cake ? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email

RE: IRC log - archive in GG

2007-11-03 Thread Christian Winther
http://groups.google.dk/group/cakephp-logs -Original Message- From: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Daniel Hofstetter Sent: 3. november 2007 17:29 To: Cake PHP Subject: Re: IRC log - archive in GG Hi Rajesh, Personally, I wouldn't like it if the IRC l

controller's main model's associated model instance variable

2007-11-03 Thread [EMAIL PROTECTED]
Hello all, 2 models : model A - model B 1 controller : controller A 2 actions in controler A : action A - action B I set a variable to false in a model B construct method : $this->myVar = false; I then in controller A have a main model A to which is associated model B in an action A I set the

Re: 1.2 Email Component question

2007-11-03 Thread Zius
Maybe I'm blind, but i just don't see the subject inserted in the headers when sending via smtp. I'm a little confused :( I also get this error on an Exim4 daemon (emails removed): 2007-11-03 16:57:50 SMTP protocol violation: synchronization error (next input sent too soon: pipelining was not ad

CakePHP-powered Forum best structure?

2007-11-03 Thread mbleonardo
Hi all, I wanna start making a forum application with CakePHP and I'm asking for suggestions: What is the best structure for the application? I want it to run in a /forum subfolder, but I think the MVC structure doesn't help it. I think the best think to do is to create separate controller for

Re: YAMMY!: feed your migrations faster

2007-11-03 Thread cakeFreak
Sorry this is the right one: -- function __buildUpSchema($tableName) { $useTable = low(Inflector::pluralize($tableName)); $db =& ConnectionManager::getDataSource($this->_useDbConfig); lo

Re: IRC log - archive in GG

2007-11-03 Thread Daniel Hofstetter
Hi Rajesh, Personally, I wouldn't like it if the IRC log is posted in this group, I would prefer a separate group for the logs, analogous to the group for tickets. -- Daniel Hofstetter http://cakebaker.42dh.com --~--~-~--~~~---~--~~ You received this message bec

Session regeneration with data loss but only with a specific controller ??!!

2007-11-03 Thread romain
Hi everyone, I'm learning how to use cakePHP. Therefore, I created a small project based on cakePHP 1.1.18.5850 with two controllers : Users and Messages. Users manages User authentification and when a user successfully logs in, I try to put some information in session but it's lost everytime! I

RE: Open svn branch for 1.2?

2007-11-03 Thread Mariano Iglesias
Now that's just a teaser for me to ask you what was the first. Tease. -MI --- Remember, smart coders answer ten questions for every question they ask. So be smart, be cool, and share your knowledge. BAKE ON! blog: http

Re: Open svn branch for 1.2?

2007-11-03 Thread nate
This is probably the second craziest thing I have ever heard. *Especially* given this project's previous experience with a wiki. On Nov 3, 7:14 am, "R. Rajesh Jeba Anbiah" <[EMAIL PROTECTED]> wrote: > I think, the Cake Project Manager could open access to another open > svn branch for 1.2. > > By

Re: Missing controller - naming error

2007-11-03 Thread MrTufty
For the var $name, as far as I'm aware, you can't have a space in it. So var $name = 'Quick Notes' would be wrong. It will (probably) fix your problem if you change the above to var $name = 'QuickNotes'; On Nov 3, 2:14 pm, Sabot <[EMAIL PROTECTED]> wrote: > Hello bakers, I'm new to cake and try

Re: YAMMY!: feed your migrations faster

2007-11-03 Thread cakeFreak
Or simply try to replace the mehtod __buildUpSchema() with the following: function __buildUpSchema($tableName) { $useTable = low(Inflector::pluralize($tableName)); $db =& ConnectionManager::getDataSource($this->_useDbConfig); loadModel();

Missing controller - naming error

2007-11-03 Thread Sabot
Hello bakers, I'm new to cake and trying to build test app for training. I'm receiving 'missing controller' error due to some problem with naming, despite I've followed cake's naming convention. I have table called 'quick_notes' And model 'quick_note.php': And controller 'quick_notes_controll

Re: Open svn branch for 1.2?

2007-11-03 Thread John David Anderson (_psychic_)
On Nov 3, 2007, at 6:20 AM, R. Rajesh Jeba Anbiah wrote: > > On Nov 3, 4:30 pm, AD7six <[EMAIL PROTECTED]> wrote: >> On Nov 3, 12:14 pm, "R. Rajesh Jeba Anbiah" >> >> <[EMAIL PROTECTED]> wrote: >>> I think, the Cake Project Manager could open access to another open >>> svn branch for 1.2. >> >>>

Re: YAMMY!: feed your migrations faster

2007-11-03 Thread cakeFreak
A kinda function like this should work in order to strip the table_prefix; -- $tableName = "cc_pippo"; $prefix = 'cc_'; $myTab = substr_replace($tableName, '', 0, strlen($prefix)); echo $myTab; -- Dan --~--~-~--~~~

Re: YAMMY!: feed your migrations faster

2007-11-03 Thread cakeFreak
Hey Tarique, cheers for your notes! Can you retry to post comments please? I'll correct the bug you submitted, and I'll release versions 1.1. If you already did, can you send me your patch? Dan On 3 Nov, 12:51, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > In case it is of any help - your l

1.2 Email Component question

2007-11-03 Thread Zius
Greetings! In the pre beta Email Component i found a strange thing, someone please explain it! In the "__encode" function (email.php line 568) we only encode the subject in base64 if the charset is not utf-8. Unfortunately with hungarian characters this makes some problems, most email clients won

Re: building url from parameter array

2007-11-03 Thread bingo
hi AD Thanks for your reply. That helped. But there seems to be some kind of inconsistency. When I use $this->params, i Get an array like this Array( ['pass'] => Array([0]=> [key1]=>v1 [key2]=> v2), ['controller'] = 'controller_name', ['action'] = 'action_name',

Re: Open svn branch for 1.2?

2007-11-03 Thread R. Rajesh Jeba Anbiah
On Nov 3, 4:30 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Nov 3, 12:14 pm, "R. Rajesh Jeba Anbiah" > > <[EMAIL PROTECTED]> wrote: > > I think, the Cake Project Manager could open access to another open > > svn branch for 1.2. > > > By this way, I think some quick small fixes can be done immediatel

Re: AppModel::__construct() throws "expected app_models"

2007-11-03 Thread R. Rajesh Jeba Anbiah
On Nov 3, 4:27 pm, AD7six <[EMAIL PROTECTED]> wrote: > On Nov 3, 11:48 am, "R. Rajesh Jeba Anbiah" > > <[EMAIL PROTECTED]> wrote: > > Adding __construct() to AppModel like: > > function __construct($id = false, $table = null, $ds = null) { > > parent::__construct(); > > > } > > > throws "N

Re: YAMMY!: feed your migrations faster

2007-11-03 Thread Dr. Tarique Sani
In case it is of any help - your line 324 reads $tempModel = new Model(false, $tableName); The tableName you are passing should not have prefix attached. Looking forward to newer versions Tarique On 11/3/07, Dr. Tarique Sani <[EMAIL PROTECTED]> wrote: > Hi Dan > > Yammy insists on adding the p

Re: Open svn branch for 1.2?

2007-11-03 Thread AD7six
On Nov 3, 12:14 pm, "R. Rajesh Jeba Anbiah" <[EMAIL PROTECTED]> wrote: > I think, the Cake Project Manager could open access to another open > svn branch for 1.2. > > By this way, I think some quick small fixes can be done immediately > without needing to open tickets, waiting for the core devel

Re: AppModel::__construct() throws "expected app_models"

2007-11-03 Thread AD7six
On Nov 3, 11:48 am, "R. Rajesh Jeba Anbiah" <[EMAIL PROTECTED]> wrote: > Adding __construct() to AppModel like: > function __construct($id = false, $table = null, $ds = null) { > parent::__construct(); > > } > > throws "No Database table for model AppModel (expected app_models), > create

Open svn branch for 1.2?

2007-11-03 Thread R. Rajesh Jeba Anbiah
I think, the Cake Project Manager could open access to another open svn branch for 1.2. By this way, I think some quick small fixes can be done immediately without needing to open tickets, waiting for the core developers to fix it, etc. Having fully moved to branch version, I have noted even for

IRC log - archive in GG

2007-11-03 Thread R. Rajesh Jeba Anbiah
This is my second post on this subject. I still feel that the IRC log for the day could be posted/archived here in this group. This would help searching the discussions easily than with http://logs.cakephp.nu/cakephp, I believe. -- Email: rrjanbiah-at-Y!comBlog: http://rajeshanbiah.blogspo

Re: YAMMY!: feed your migrations faster

2007-11-03 Thread Dr. Tarique Sani
Hi Dan Yammy insists on adding the prefix to already prefixed table eg: my table is called cc_photos where cc_ is the prefix - then --- The following Yaml Migration file will be created:

Re: othAuth with Cake 1.2.x.x Nightly Build (5938)

2007-11-03 Thread R. Rajesh Jeba Anbiah
On Nov 3, 5:47 am, gmwebs <[EMAIL PROTECTED]> wrote: > For some reason or another, since upgrading to the latest pre-beta > 1.2.x.x I have been experiencing issues with the othAuth component. I > have also upgraded to the latest nightly build but it has not made any > difference. > > I followed th

AppModel::__construct() throws "expected app_models"

2007-11-03 Thread R. Rajesh Jeba Anbiah
Adding __construct() to AppModel like: function __construct($id = false, $table = null, $ds = null) { parent::__construct(); } throws "No Database table for model AppModel (expected app_models), create it first." error with recent 1.2 svn branch. IOW, if such method is not added, there i

Re: Model with custom id fields

2007-11-03 Thread AD7six
On Nov 3, 8:20 am, maxpo <[EMAIL PROTECTED]> wrote: > how easy isn't it??? But u forgot it can cause a duplicate entry of > same student_id and assessment_id which is not allowed by the table, > hence it will fail again so to clear up the mess here is an image of > relation that i m trying to sa

Re: building url from parameter array

2007-11-03 Thread AD7six
On Nov 3, 1:20 am, bingo <[EMAIL PROTECTED]> wrote: > hi > > I am trying manipulate the url to provide different link options in > the view. Although I can get all the parameters using > Router::parser(Router::url("")), I am not sure how can I pass back the > parameter array and get a valid url.

Sometime model->save insert new record even if id is passed

2007-11-03 Thread AzGhanv/.
Hi, This code sometimes insert new empty rows, what i want is to update existing row if found. please let me know asap. function play($tag="") { $this->layout = "blank"; $data = $this->Audio->find("Audio.seo_url = '$tag'"); if (empty($data)) $this-

Re: Model with custom id fields

2007-11-03 Thread maxpo
how easy isn't it??? But u forgot it can cause a duplicate entry of same student_id and assessment_id which is not allowed by the table, hence it will fail again so to clear up the mess here is an image of relation that i m trying to say u about: http://img212.imageshack.us/img212/8563/clipboard0

Re: YAMMY!: feed your migrations faster

2007-11-03 Thread cakeFreak
Cheers Daniel, I hope you enjoyed the tutorial! Daniel --~--~-~--~~~---~--~~ 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 grou

Re: othAuth with Cake 1.2.x.x Nightly Build (5938)

2007-11-03 Thread gmwebs
I take it by POSTs you mean form submissions with a method of POST? Well if so, then no, it does not happen for all POSTs. It seems only to happen with my admin functions. I can navigate the site as a normal user while logged in, but as soon as I log in as an administrator and attempt to edit an

Re: HTTP-auth and Security Component cake 1.2 - POST a form cause me difficulty

2007-11-03 Thread luke BAKING barker
Hi McFadly, hats interesting thanks. I normally use othAuth but I jsut wanted a very simple HTTP-Auth, and it seems to me that should be easily achievable with this Security component, although I have not been able to get it to work! All I would like to do is turn off the separate checking of PO

Re: othAuth with Cake 1.2.x.x Nightly Build (5938)

2007-11-03 Thread luke BAKING barker
Is this happening only for admin actions or all POSTs ? Luke On Nov 3, 12:47 am, gmwebs <[EMAIL PROTECTED]> wrote: > For some reason or another, since upgrading to the latest pre-beta > 1.2.x.x I have been experiencing issues with the othAuth component. I > have also upgraded to the latest night