Re: i18n: static language references with __("My lang key", true) in models and controllers

2008-01-31 Thread Sliv
I just ran into this issue and did some digging: Here's francky06l's ticket: https://trac.cakephp.org/ticket/3318 It appears it was fixed in changeset 5815 but then the change was reverted in changeset 5827: https://trac.cakephp.org/changeset/5827 Does anyone know why this change was reverted a

Re: Using PHP 5 Functionality In Your App

2007-12-07 Thread Sliv
@Walker: I guess I was thinking more along the lines of new functionality that some developers may want to take advantage of and are willing to give up backwards compatibility in their app to do it. By "share their experiences", I guess I was looking for feedback on examples of such functionality

Using PHP 5 Functionality In Your App

2007-12-06 Thread Sliv
I was wondering if developers out there who are writing CakePHP apps in a PHP 5 environment are using PHP 5 functionality in their app(s) or are choosing to stick with functionality available in 4 or 5? Since Cake is compatible with both versions, developed apps may want to be compatible with bot

Re: a lot of the features that make rails so cool are totally missing in cake :(

2007-11-29 Thread Sliv
Also there is of course http://tempdocs.cakephp.org/ and the custom google search link on the cake front page On Nov 28, 6:53 pm, "Christopher E. Franklin, Sr." <[EMAIL PROTECTED]> wrote: > >The developers are people and you will get a lot > > further if you treat them that way. > > LIES! They

Re: Sad Question

2007-11-22 Thread Sliv
A colleague of mine a couple of years ago ran into problems with 2003 web edition, found that it really tried to lock everything down in an attempt to be a secure internet server. Since the server was slotted for intranet only (behind firewall), he switched to 2003 standard and found things worke

Re: problem with 1.2 __() function

2007-11-08 Thread Sliv
Yep, was a bug that was fixed: https://trac.cakephp.org/ticket/3451 On Nov 7, 7:23 pm, sdc53 <[EMAIL PROTECTED]> wrote: > In my baked view/edit/index screens, the __() internationalization > function is used with values coming from the DB inside $html->link. > For example: > echo $html->link(__(

Re: problem with 1.2 __() function

2007-11-08 Thread Sliv
Looked at the latest updated basics.php and looks like this was fixed with a slightly different method: cake/basics.php after line: function __($singular, $return = false) { insert code: if (!$singular) { return; } Line 1203: https://trac.ca

Re: problem with 1.2 __() function

2007-11-08 Thread Sliv
Temporary workaround that seems to work for me until a better solution is found (not sure if it's a bug or a feature): cake/basics.php after line:function __($singular, $return = false) { insert code: if(is_null($singular)) { // temp fix for null values

Re: problem with 1.2 __() function

2007-11-08 Thread Sliv
I'm seeing this exact thing as well when __() is being passed a null value. On Nov 7, 7:23 pm, sdc53 <[EMAIL PROTECTED]> wrote: > In my baked view/edit/index screens, the__() internationalization > function is used with values coming from the DB inside $html->link. > For example: > echo $html->li

Re: Dedicated server: which Linux distribution?

2007-10-13 Thread Sliv
Out of those 3 choices, I would also recommend Debian. If CentOS is an option, I would recommend CentOS. I recently changed over to CentOS on my dev server and have been pleased so far. I did this after scouring various forums on the web and finding that CentOS was a pretty popular choice for L

Re: General gripes and questions

2007-06-07 Thread Sliv
If anything, the cake devs are a lot more active on this project than many other open source projects I've come across. I don't see any difference between here and pretty much any app that's out there as far as dev goes; If you want stable, use their stable app, if you want bleeding edge, use the

Re: CakePHP Manual rev 154 for CakePHP 1.1

2007-06-05 Thread Sliv
Thanks! I was wondering, is there a connection between these updates and manual.cakephp.org? I'm just wondering if one is considered more up to date than the other. On Jun 4, 7:00 pm, "Gustavo Carreno" <[EMAIL PROTECTED]> wrote: > Hi there! > > New release of your packaged manuals. > > [Notes]

Re: CakePHP php5?

2007-05-29 Thread Sliv
Also, think of down the road; 1.2 apps currently being developed will at some point "feel" like 1.1 apps that are being developed right now, as the new bleeding edge cake will probably be 2.x... "Legacy Support" or "backwards-compatibility" or whatever term you choose to use, is without a doubt hu

Re: how scalable is this framework

2007-05-22 Thread Sliv
Back in the day I looked at Symfony before CakePHP. I watched a video of a simple app being coded in Symfony. I didn't write any code after the video. Instead, I then looked at CakePHP. No Video. So I just started trying it out. I had a basic scaffolded app working in the time it took to wat

Re: The Cake is Rising

2007-05-20 Thread Sliv
Thanks very much CakePHP Devs! --~--~-~--~~~---~--~~ 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 PR

Re: Title in Subject (default)

2007-05-18 Thread Sliv
I'm not sure I understand you exactly, but you can put this in a controller to set a title for the view: $this->pageTitle = 'yourpagetitle'); On May 18, 9:17 am, "Rodrigo Castilho Galvão Ferreira" <[EMAIL PROTECTED]> wrote: > Please, it would be very good for having a heading for standard, for e

Re: Obtain count from associations

2007-05-18 Thread Sliv
You may want to check this thread: http://groups.google.ch/group/cake-php/browse_thread/thread/308ea201394f235c/dcf614689114db68 On May 18, 9:06 am, buzznut <[EMAIL PROTECTED]> wrote: > It looks like the GROUP BY in the left join statement is causing the > problem. The following query works and r

Re: Want to add sum to sql

2007-05-18 Thread Sliv
seen a guy ask this same > question in 2006 and never got a reply. > > On May 18, 2:56 pm, Sliv <[EMAIL PROTECTED]> wrote: > > > How to use sql functions in > > conditionshttp://cakebaker.42dh.com/2007/05/04/how-to-use-sql-functions-in-cond... > > > On May

Re: Want to add sum to sql

2007-05-18 Thread Sliv
cakephp style coding would be to not grab data from your db using php mysql functions in a view helper...I'd recommend reading up on the manual and some basic tutorials about cake, mvc, etc. On May 18, 9:13 am, Enchy <[EMAIL PROTECTED]> wrote: > Thanks > > i endend up creating a really quick and

Re: Printing Variable in thtml

2007-05-18 Thread Sliv
Read: http://manual.cakephp.org/chapter/controllers http://manual.cakephp.org/chapter/views For example, depending on the controller/view, your example could be as simple as: echo $order['dateoforder'] ... On May 18, 6:03 am, Enchy <[EMAIL PROTECTED]> wrote: > Hi > > I have looked in the htmlhe

Re: Want to add sum to sql

2007-05-18 Thread Sliv
How to use sql functions in conditions http://cakebaker.42dh.com/2007/05/04/how-to-use-sql-functions-in-conditions/ On May 18, 8:45 am, Enchy <[EMAIL PROTECTED]> wrote: > var $belongsTo = array( 'Orderitem' => > array('className' => 'Orderitem', >

Re: How to set 2nd table ORDER when using findAll()

2007-05-17 Thread Sliv
Read the cake chapter on models, talks about model defs, the order parameter, and the beforefind function. http://manual.cakephp.org/chapter/models On May 17, 2:19 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Sorry I am a cakePHP n00b. How do I change the order parameter in the > model de

Re: User and Friend model HasAndBelongsToMany relationship

2007-05-17 Thread Sliv
I think that's maybe a db design issue more than a cake one and it really depends on what you want to accomplish with your data. I'd recommend doing some reading on the concepts of db normalization and data models: http://dev.mysql.com/tech-resources/articles/intro-to-normalization.html http://w

Re: Experiencing slowness with CakePHP, Apache, MySQL on XP

2007-05-17 Thread Sliv
Well to each their own, you can try this test which tries to tell you what the best distro is for "you": http://www.zegeniestudios.net/ldc/ On May 17, 2:55 pm, Victor <[EMAIL PROTECTED]> wrote: > Sliv: thanks you, thank you, and thank you! > > Really, Mandriva? Everyon

Re: Experiencing slowness with CakePHP, Apache, MySQL on XP

2007-05-17 Thread Sliv
BTW, I recommend Mandriva Linux for a dev env because I personally found it to be the easiest learning curve among the linux distros for those used to windows. On May 17, 2:29 pm, Sliv <[EMAIL PROTECTED]> wrote: > I haven't read this in detail, just googled it, but you may want to

Re: Experiencing slowness with CakePHP, Apache, MySQL on XP

2007-05-17 Thread Sliv
I haven't read this in detail, just googled it, but you may want to have a look: How to install vmware server on xp: http://www.petri.co.il/virtual_install_vmware_server.htm On May 17, 2:07 pm, Victor <[EMAIL PROTECTED]> wrote: > Sliv: thanks for the response. If windows MySQL

Re: Experiencing slowness with CakePHP, Apache, MySQL on XP

2007-05-17 Thread Sliv
If you want to try the DIY route, you can get vmware server free here: http://www.vmware.com/products/server/ and this is a tutorial I've used before to install LAMP: http://www.howtoforge.com/perfect_setup_mandriva_2006 On May 17, 2:07 pm, Victor <[EMAIL PROTECTED]> wrote: > Sl

Re: How to set 2nd table ORDER when using findAll()

2007-05-17 Thread Sliv
You can either change the order parameter in the model definition or use a beforeFind in the model to change the order. On May 17, 12:48 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Here is the debug from my query using > > $this->set('data', $this->Question->findAll('quiz_id = '.$quiz_id

Re: Use .html (or .htm or .php) instead of .thtml in views?

2007-05-17 Thread Sliv
http://www.help2go.com/Tutorials/Web_Page_Design/CakePHP_and_Dreamweaver_8.html On May 17, 11:26 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Changing cake to use .html extensions won't solve your problem, cause > then the design application wont recognize the php code. So u should > use

Re: Experiencing slowness with CakePHP, Apache, MySQL on XP

2007-05-17 Thread Sliv
. But I don't > know where to look into to find the problem. I will appreciate some > suggestions and information. > > Thanks. > > I also tried to install a virtual machine. It was not successful. > Either I did not download the right stuff or the instruction was not >

Re: Experiencing slowness with CakePHP, Apache, MySQL on XP

2007-05-17 Thread Sliv
I would recommend trying a non-cake php page, then a non-cake php page that reads data from your database. If either of those are slow, you've got an issue with your WAMP setup, not cake. If possible, I recommend you run a virtual machine with a LAMP setup, I bet you'll have less problems and be

Re: correct use of flash

2007-05-17 Thread Sliv
ED]> wrote: > YEAH IT WORKS... THANKS > > ANY POINTER TO WHY FLASH NOT WORKING??? > > On May 17, 5:03 pm, Sliv <[EMAIL PROTECTED]> wrote: > > > Try this: > > > if($this->Note->save($this->data)) { > > $this->Session->setFl

Re: Session issue.

2007-05-17 Thread Sliv
If you're using 1.1.x Look in your app_dir . /config/core.php: /** * Set level of Cake security. * */ define('CAKE_SECURITY', 'high'); /** * Set Cake Session time out. * If CAKE_SECURITY define is set * high: multiplied by 10 * medium: is multiplied by 100 * low is: multiplied by

Re: correct use of flash

2007-05-17 Thread Sliv
Try this: if($this->Note->save($this->data)) { $this->Session->setFlash('Your note has been updated.'); $this->redirect('/notes/'); exit(); } On May 17, 4:48 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > hi, > > Newbee to cake. > > I am using flash, biut it doesnt seem to dire

Re: CakePHP wallpaper

2007-05-15 Thread Sliv
Nice! ;) On May 15, 12:54 pm, Anton Dubina <[EMAIL PROTECTED]> wrote: > Hi, > > I really like CakePHP and I thought I could somehow contribute to > community. So I've made this simple wallpaper: > > http://dubina.ru/archives/38 > > Just a vector-drawn CakePHP logo on one-color background for peop

Re: Passing Arguments To A Controller Action For Data-Based Permissions

2007-05-11 Thread Sliv
By the way, I left out the code for checking the ACL's, rendering views, etc., so please assume that ACL checking and all that other stuff is implied :P On May 11, 9:26 am, Sliv <[EMAIL PROTECTED]> wrote: > This is my thought on how to use ACL when needing permissions for > ex

Passing Arguments To A Controller Action For Data-Based Permissions

2007-05-11 Thread Sliv
This is my thought on how to use ACL when needing permissions for existing controller actions to be based on specific data elements: -Add more controller actions (i.e. index2, index3, etc.) -set ACL's on those -call the "main" controller action (index), passing it an argument -check for the argum

Re: advantages of production setup?

2007-05-11 Thread Sliv
I think the most obvious advantage is that your non-view files aren't sitting in your "publicly" accessible webroot with the prod setup On May 10, 8:21 pm, laptop <[EMAIL PROTECTED]> wrote: > hi all, > > what are the advantages of a production setup?? is it ok to just leave > it in developmen

Re: Elements vs requestAction

2007-05-10 Thread Sliv
Tane's Bakery Article: http://bakery.cakephp.org/articles/view/optimizing-your-cakephp-elements-and-views-with-caching On May 10, 4:06 pm, gerhardsletten <[EMAIL PROTECTED]> wrote: > Hi Tane > > Is it possible to cache an spesific element in 1.1 or is it a new > function in 1.2? Can you give us

Re: In-depth Model Tutorials

2007-05-10 Thread Sliv
https://trac.cakephp.org/milestone/2.0.0.x "Change Models to return object instances instead of arrays" On May 10, 2:34 pm, chrislewis <[EMAIL PROTECTED]> wrote: > A seemingly common misconception regarding MVC is that models just > hold data. This is incorrect. To use a buzzword, models represe

Re: CakePHP Wins 1st Place In Web 2.0 Awards

2007-05-10 Thread Sliv
bah I should have refreshed the group first LOL :P Sorry... On May 10, 11:03 am, Sliv <[EMAIL PROTECTED]> wrote: > Sorry if this was posted already, but I don't think it was: > > http://www.seomoz.org/web2.0#cat_51 --~--~-~--~~~---~--~---

CakePHP Wins 1st Place In Web 2.0 Awards

2007-05-10 Thread Sliv
Sorry if this was posted already, but I don't think it was: http://www.seomoz.org/web2.0#cat_51 --~--~-~--~~~---~--~~ 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@google

List of CakePHP related links

2007-05-10 Thread Sliv
FYI - http://ma.gnolia.com/tags/cakephp --~--~-~--~~~---~--~~ 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

Re: URL issue

2007-05-09 Thread Sliv
oops, wrapped $newurl = '?var='.$this->params['controller']; $newurl .= '&var2='.$this->params['action']; $newurl .= '&var3='.$this->params[0]; $newurl .= '&var4='.$this->params[1]; $newurl .= '&var5='.$this->params[2]; --~--~-~--~~~---~--~~ You received this mes

Re: URL issue

2007-05-09 Thread Sliv
one way: $newurl = '?var='.$this->params['controller'].'&var2='.$this- >params['action'].'&var3='.$this->params[0].'&var4='.$this- >params[1].'&var5='.$this->params[2]; On May 9, 1:32 pm, "Erich C. Beyrent" <[EMAIL PROTECTED]> wrote: > I have a vendor that is doing email marketing for me. They

Re: cakephp rendering

2007-05-09 Thread Sliv
http://manual.cakephp.org/chapter/request_handler On May 9, 1:14 pm, Michael Augustyniak <[EMAIL PROTECTED]> wrote: > gwoo wrote: > > use the RequestHandler component with ajax and the layout will be set > > automatically > > Not sure how to use it . > I added inside controller > var $components

Re: findAll with specific fields and hasMany relation

2007-05-09 Thread Sliv
I would probably use bindModel with conditions: http://groups.google.ca/group/cake-php/browse_thread/thread/dcbb867063e4696c/4fbbbd0bf6223330?lnk=gst&q=bindmodel&rnum=9#4fbbbd0bf6223330 On May 9, 1:08 pm, robechar <[EMAIL PROTECTED]> wrote: > This is the only way I have found to do this, but pe

Re: phpGACL installation

2007-05-09 Thread Sliv
y ask. > So be smart, be cool, and share your knowledge. > > BAKE ON! > > blog:http://www.MarianoIglesias.com.ar > > -Mensaje original- > De: cake-php@googlegroups.com [mailto:[EMAIL PROTECTED] En nombre > de Sliv > Enviado el: Miércoles, 09 de Mayo de 2007 10:05 a.m.

Re: Printing in PHP

2007-05-09 Thread Sliv
http://www.daniweb.com/techtalkforums/thread15881.html "Smithers, release the hounds." On May 9, 9:00 am, "Chris Hartjes" <[EMAIL PROTECTED]> wrote: > On 5/9/07, RB <[EMAIL PROTECTED]> wrote: > > > > > Hi, > > > How to send a report information directly to a printer ( dot matrix > > printer ) ?

Re: phpGACL installation

2007-05-09 Thread Sliv
Well, I used PhpGACL 3.3.7 installed into APP_DIR . /vendors/ After extraction, I did have to make a symbolic link to the phpgacl-3.3.7 folder called 'phpgacl' because the plugin was looking for that folder. For the plugin: app_dir . /plugins/phpgacl/ app_dir . /components/php_gacl.php WEBROO

Re: Elements vs requestAction

2007-05-08 Thread Sliv
I believe from what I've read, that a big reason for not using a series of requestActions is performance. Run a series of requestAction calls and check the speed. Cake Processing Explained: http://groups.google.ca/group/cake-php/browse_thread/thread/7cf805d7ae1841ab/39c1ed08657b19c1%2339c1ed0865

Re: phpGACL installation

2007-05-08 Thread Sliv
I'm using PHP5, MySQL 5 and CakePHP 1.1.14.4797 with Mariano's phpGACL and also dAuth 0.3; no problems. The only thing I had to do was implement the connection_manager.php trunk fix to resolve a datasource error message. That doesn't sound like your issue, though... On May 8, 9:45 am, "[EMAIL P

Re: problems when using Model::save() to save more than one record,

2007-05-08 Thread Sliv
I don't know what functionality google groups offers, but can a mod do a "move topic" to the frequent discussions section? I know that doesn't solve that many folks don't search before asking, but I was just curious if there was more BB type functionality for the group... On May 7, 10:30 pm, "Sa

Re: CakePHP vs Symfony

2007-05-03 Thread Sliv
Pages 7 and 8: http://cake.insertdesignhere.com/files/nyphp_presentation.pdf On May 3, 11:01 am, "Samuel DeVore" <[EMAIL PROTECTED]> wrote: > nate had a nice comparison in a presentation that he gave somewhere I > think (or someone did) There was pdf with slides floating around > > Sam D > > O

Re: HOwto check session in thtml

2007-05-03 Thread Sliv
Further to that, here's a way I've done the login/logout button that works with a 'users' controller that has 'login' and 'logout' actions/ methods: in app_controller.php 'beforeRender' function: // Login/Logout navigation menu item if($this->Session->check('User') == false){ $this->set(

Re: what relationship is this?

2007-05-03 Thread Sliv
http://www.adobe.com/devnet/dreamweaver/articles/beginners_databases_03.html On May 3, 9:50 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > You are asking is how to set up relationships. If you don't know how > to create basic relationships, then you need to read cake manual, and > then go

Re: CakePHP vs Symfony

2007-05-03 Thread Sliv
http://groups.google.ca/group/cake-php/search?group=cake-php&q=cakephp+symfony&qt_g=Search+this+group On May 3, 9:47 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On 5/3/07, TM <[EMAIL PROTECTED]> wrote: > > > > > Have a look at this one > > too...http://www.phpit.net/article/ten-different

dAuth, PhpGACL for Cake and MySQL View

2007-05-01 Thread Sliv
I'm working on an authentication/authorization solution for my current project, so am trying to save myself a lot of work by using the dAuth component ( http://bakery.cakephp.org/articles/view/introduction-to-dauth-v0-3 ) and the PhpGACL for Cake plugin ( http://cakeforge.org/projects/phpgacl-cake

Re: Upgrade Path From 1.1 to 1.2

2007-05-01 Thread Sliv
a bit mandatory as > new features will be based on 1.2 and 1.1 will somehow "die". > > On Apr 30, 8:20 am, "Gonzalo Servat" <[EMAIL PROTECTED]> wrote: > > > On 4/30/07, Sliv <[EMAIL PROTECTED]> wrote: > > > > [..snip..] > > >

Upgrade Path From 1.1 to 1.2

2007-04-30 Thread Sliv
The current app I'm working on has been keeping up with the latest release versions of the 1.1 branch. I'm seeing more and more posts about 1.2, including folks building prod apps using this branch. I'm looking for opinions on whether it would be a good idea for me to upgrade to 1.2 on my curren

Cake Style Source Code Formatter

2007-04-29 Thread Sliv
I thought this might interest the community; a free online source code formatter: http://formatter.gerbenvv.nl/version3/index.php If you register, you can create "styles" by adjusting a range of parameters. In this way, it could help to conform your source to the Cake coding standards when shar

How to build role-based access control in SQL

2007-04-25 Thread Sliv
I'm trying to wrap my head around ACL and generally speaking, authorization, for an application I'm working on using Cake. One of the requirements is to go beyond securing controllers and actions and be able to define permissions which depend on the specific data in question. For example (my apo

Re: newbie question...creating a 'login' element

2007-04-24 Thread Sliv
Maybe try putting this in a beforeRender() function in your Users controller?: if(!isset($this->viewVars['error'])) { $this->set('error', false); } On Apr 23, 8:24 pm, Stacey <[EMAIL PROTECTED]> wrote: > hi all, > > i read a post in here about having a login form built into the default > la

Re: Best Auth System For This Setup?

2007-04-20 Thread Sliv
Thanks, Langdon, I'll have a look at dAuth. On Apr 20, 6:59 pm, Langdon Stevenson <[EMAIL PROTECTED]> wrote: > Hi Sliv > > > The issue is that permissions will need to go beyond simply base > > controller actions (add,edit,delete,view,etc.) and actually take into >

Best Auth System For This Setup?

2007-04-20 Thread Sliv
Hello, This is my first post - I'd like to say thanks to the Developers and the Community for this great framework, I really hope to learn a lot from you folks and possibly someday be able to contribute something of value back to you all. I'm currently developing a customized application which w

<    1   2   3