Re: Is CakePHP more suitable for web services or Zend Framework?

2012-08-01 Thread Zaky Katalan-Ezra
://groups.google.com/group/cake-php -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054-7762312 -- 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

Re: set::sort question

2012-07-30 Thread Zaky Katalan-Ezra
://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 -- Regards, Zaky Katalan-Ezra QA Administrator

Re: CakePHP REST service does not recognize POST

2012-07-30 Thread Zaky Katalan-Ezra
pr($this-RequestHandler) just above if( $this-RequestHandler-isPost() ) { What is the output? By the way, I use this to check post $this-request-is('post') On Thu, Jul 26, 2012 at 11:29 PM, frederikjacques thenerd...@gmail.comwrote: $this-RequestHandler -- Regards, Zaky Katalan-Ezra QA

Re: cakephp 1.3 with javascript

2011-11-22 Thread Zaky Katalan-Ezra
Where in the code you get the returned data and try to put it in the page? On Tue, Nov 22, 2011 at 1:31 PM, jason for jsnfo...@googlemail.com wrote: Hi folks, I'm almost done with my 1st cakephp site and it's looking good, but could look better with a bit of javascript dynamically changing my

Re: Problem masking errors in cakePhP

2011-11-22 Thread Zaky Katalan-Ezra
Create app_error file; ?php class AppError extends ErrorHandler { function _outputMessage($template) { $this-controller-log($this,'err'); $this-controller-beforeFilter(); parent::_outputMessage($template); } } ? Taken from here:

Re: publish a project. what to do with database?

2011-11-21 Thread Zaky Katalan-Ezra
Install mysql on the server. On your local machine run the command: mysqldump -u root -p password yourdbnane outfile.sql. upload outfile.sql to the server on the server run the command: mysql -u root -p password yourdbname outfile.sql Clean you db from development data. On Mon, Nov 21, 2011

Re: Plupload and Media Plugin

2011-11-06 Thread Zaky Katalan-Ezra
...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054-7762312 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP

Re: Help: how to use cakephp for subdomains

2011-11-06 Thread Zaky Katalan-Ezra
http://procsharp.blogspot.com/2010/12/configure-apache-to-host-domain-and.html On Sun, Nov 6, 2011 at 10:54 AM, Hamid Mamdoohi hamid.mamdo...@gmail.comwrote: I create subdomain for my site. I use cakephp for that but when call $html-css('style') method to add tag and run it. cake can't load

Re: Cake2.0 not recognizing my PHPUnit installation

2011-10-25 Thread Zaky Katalan-Ezra
Download all repositories and update include_path as said in the section Using PHPUnit From a Git Checkout in https://github.com/sebastianbergmann/phpunit On Tue, Oct 25, 2011 at 3:21 AM, andrewperk andrewp...@gmail.com wrote: Ok, I downloaded and put PHPUnit into my vendors folder. Now when I

Re: Am i breaking MVC?

2011-10-19 Thread Zaky Katalan-Ezra
Why cake or php involved with this operation? On Wed, Oct 19, 2011 at 4:52 PM, Ernesto e.fanz...@gmail.com wrote: Hi all. i have a simple app wich uses 2 different DBs. The second DB is used just to import data on a daily basis, no writes. i have 2 options: 1 - switch DB on-the-fly in my

Re: How do you track your issues / bugs ?

2011-10-11 Thread Zaky Katalan-Ezra
I am using Unfuddle http://unfuddle.com/ with great success. I also like Trac http://trac.edgewall.org/ On Tue, Oct 11, 2011 at 11:52 AM, euromark dereurom...@googlemail.comwrote: exactly, jeremy :) same with me On 11 Okt., 07:20, Jeremy Burns | Class Outfit jeremybu...@classoutfit.com

Re: Help with multilevel inheritance

2011-10-11 Thread Zaky Katalan-Ezra
Supply tables structure. Environments etc. On Tue, Oct 11, 2011 at 11:19 AM, Karan karandeepajm...@gmail.com wrote: Hello Guys, I am a total beginner with cakephp. I have managed to establish a proper functioning CRUD app with oracle at the backend. I have the current structure in place,

Re: hasAndBelongsToMany does not work

2011-10-09 Thread Zaky Katalan-Ezra
Provide the models code On Fri, Oct 7, 2011 at 11:26 PM, khalili merouane merouane.khal...@gmail.com wrote: Hello, I have two tables categories and products when I try to view a category, I just have the information in the category without products. When I check the applications running

Re: Ajax Link - How to exchange/toogle a link?

2011-10-09 Thread Zaky Katalan-Ezra
#my_profile is the link id. function follow(add) { var data = data[User][id]=+$(#foloweeId).val(); var actionurl = /users/users/setFollow; if(add == 0){ var actionurl = /users/users/unsetFollow; } $.ajax({ type: post,// Request method:

Re: Best practice for pending/approved flag for comments in a blog

2011-10-06 Thread Zaky Katalan-Ezra
You can review CakeDC comments plugin https://github.com/CakeDC/comments On Wed, Oct 5, 2011 at 11:02 AM, Boyan boyan...@googlemail.com wrote: Hello, I am trying to develop a blog- like application with Cakephp and have a rather general question. The comments for each post should be first

Re: Html helper - stop adding prefix unless explicitly specified

2011-10-05 Thread Zaky Katalan-Ezra
I have 3 roles in my app. To Avoid adding the prefix arrays to each url, I am using this helper function. View code to create musician prefix url: echo $this-Html-link('Dashboard', $this-RoleLink-linkRole(array('controller'='users','action'='dashboard'),array('musician'))); Helper function:

Re: uploading large file fails

2011-10-03 Thread Zaky Katalan-Ezra
http://www.sitepoint.com/upload-large-files-in-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

Re: I can find() but can't save(), why?

2011-10-02 Thread Zaky Katalan-Ezra
Try to leave only one field to save then add fields one by one to get the problematic field. Do you use any behaviors with this model? if you do remove them and try to save. On Sun, Oct 2, 2011 at 6:14 PM, CrotchFrog crotchf...@gmail.com wrote: Just wondering if this issue has been resolved?

Re: Trying to convince management that Open Source is a good thing

2011-09-28 Thread Zaky Katalan-Ezra
Money is not an issue in such organizations. Most of the licenses are all ready bought. The fast response for new tasks is the main issue. You get this fast response because there is tons of libraries and code out there that you can integrate into your solution. Do it step by step: First, suggest

Re: User id in afterPaypalNotification

2011-09-26 Thread Zaky Katalan-Ezra
Thank you I am using the 'custom' attribute because 'Item_number' is shown in paylal page like 'item_name' do. 'custom' or 'invoice' are hidden On Mon, Sep 26, 2011 at 12:03 AM, nurvzy nur...@gmail.com wrote: You can't use sessions, Paypal is talking to your site, not the user. Once the

Re: basic relation question

2011-09-23 Thread Zaky Katalan-Ezra
If the relationship are all there in all models you may change to $this-track-recursive = 1; if not try to build your models with ./cake bake all in order to see the suggested relationship. On Fri, Sep 23, 2011 at 6:20 PM, Seth sturet...@gmail.com wrote: I'm very new to CakePHP and MVC, so

Re: Element paths in a Plugin?

2011-09-23 Thread Zaky Katalan-Ezra
Did you try? On Fri, Sep 23, 2011 at 2:20 PM, Xoubaman xouba...@gmail.com wrote: If you call for an element in a plugin, if cake don't found it in the plugin's element folder, will look for it in the app element folder. -- Our newest site for the community: CakePHP Video Tutorials

Re: Oop Question? - accessing protected model methods from behaviours.

2011-09-19 Thread Zaky Katalan-Ezra
this group at http://groups.google.com/group/cake-php -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054-7762312 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Re: Media plugin and user plugin

2011-09-17 Thread Zaky Katalan-Ezra
I didn't change register action at all. I just added the Media behaviors to user model $actsAs. Its working perfectly in other controllers. Anyway I found a solution: I needed the media plugin in order to upload the user profile image. I removed the 'Media.Coupler' from the user model $actsAs and

Re: hi guys

2011-09-17 Thread Zaky Katalan-Ezra
See this http://planetcakephp.org/aggregator/items/2102-cakephp-ajax-country-region-select-box-combo-box On Fri, Sep 16, 2011 at 11:41 PM, aortizhi aorti...@gmail.com wrote: I have this problem, i create a form that will display select field here's my code: ?php echo

Re: Login to a CakePHP application from another site doesn't work

2011-09-15 Thread Zaky Katalan-Ezra
to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054-7762312 -- Our newest site for the community: CakePHP Video Tutorials http

Re: display last 5 inserted image

2011-09-15 Thread Zaky Katalan-Ezra
, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054-7762312 -- Our newest site for the community: CakePHP Video Tutorials http

Re: display last 5 inserted image

2011-09-15 Thread Zaky Katalan-Ezra
By other kind you mean different size? If yes. Media plugin let you create 3 sizes (or maybe more) of images from the uploaded file. small/medium/large stored in s,m,l folders. In different pages you can refer different size by prefix the image name with the right folder. example: You get from the

Re: filtering model result bases on user rights

2011-09-15 Thread Zaky Katalan-Ezra
://groups.google.com/group/cake-php -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054-7762312 -- 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

Re: filtering model result bases on user rights

2011-09-15 Thread Zaky Katalan-Ezra
in common. On Sep 15, 10:42 am, Zaky Katalan-Ezra procsh...@gmail.com wrote: How do you save the permissions in the database? On Thu, Sep 15, 2011 at 10:53 AM, Timmay tim.smi...@gmail.com wrote: Hi all, I'm working on a multi user website with a collection of documents. Every user

Re: Se Ya Cake..bake a dick cake frosting on your face...............

2011-09-15 Thread Zaky Katalan-Ezra
CakePHP is a framework not a product like joomla/durpal You should usually use it when one of the shelf products like joomla/durpal/wordpress/socialEngine don't fit the project needs. Usually in those cases the customer will not tell you how to develop. Now if you decided to write from scratch

Re: Media plugin transferTo

2011-09-14 Thread Zaky Katalan-Ezra
at http://groups.google.com/group/cake-php -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054-7762312 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Re: Part time code maintaining

2011-09-14 Thread Zaky Katalan-Ezra
I also recommend http://www.earthtechnology.co.in/ I work with them for a long time with great satisfaction. Contact Debasish banerjee deban...@gmail.com On Wed, Sep 14, 2011 at 6:18 AM, Amresh Singh amreshsingh...@gmail.comwrote: Dear Amit There is no problem. I am interested in part time

Re: Why is this better?

2011-09-12 Thread Zaky Katalan-Ezra
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 -- Regards, Zaky Katalan-Ezra QA Administrator

Re: pass information to the view

2011-09-11 Thread Zaky Katalan-Ezra
$this-set('campos',$campos); or $this-set(compact($campos)); On Sun, Sep 11, 2011 at 7:28 PM, aortizhi aorti...@gmail.com wrote: Hi everyone, i have a problem passing infomation to my view. Here's my code in my controller public $campos; //global variable if (empty($this-data)) {

Re: pass information to the view

2011-09-11 Thread Zaky Katalan-Ezra
Yes On Sun, Sep 11, 2011 at 9:06 PM, euromark dereurom...@googlemail.comwrote: @zaky you meant.. $this-set(compact('campos')); @aortizhi you can then access it with $campos['Model']['field'] On 11 Sep., 19:21, Zaky Katalan-Ezra procsh...@gmail.com wrote: $this-set('campos',$campos

Re: Noob Looking for help editing site.

2011-08-29 Thread Zaky Katalan-Ezra
How it relate to cake? What do you have now on your site? What content do you want to add? etc. On Sat, Aug 27, 2011 at 6:02 PM, Binkoba M24 414 bink...@gmail.com wrote: Hi I need some help figuring out how to edit and add pages to a site I had built. I have the ftp access, but it does not

Re: Noob Looking for help editing site.

2011-08-29 Thread Zaky Katalan-Ezra
folder etc. If I could only figure this out I may be able to move ahead. Also, what tool is used to develop sites like this, Dreamweaver or something else? Thanks. Ashley. On Aug 29, 2011 8:07 AM, Zaky Katalan-Ezra procsh...@gmail.com wrote: How it relate to cake? What do you have now

Re: successful - login interceptor

2011-08-29 Thread Zaky Katalan-Ezra
Take a look at cakedc users plugin On Mon, Aug 29, 2011 at 11:46 PM, rethab rethab...@gmail.com wrote: Hi there I currently have a Users controller, which contains a login method. This method is in turn invoked every time the login form gets displayed to the user. In the app_controller, I

Re: Scalable CakePHP Architecture

2011-08-27 Thread Zaky Katalan-Ezra
Splitting the code got nothing to do with application scalability. As you mentioned split the code to plug-ins and make some of them open source to gain community contribution. Then scale the application with common solutions like clusters, database replications etc. On Thu, Aug 25, 2011 at 8:30

Re: save option instead of select value

2011-08-22 Thread Zaky Katalan-Ezra
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 -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054-7762312

Re: save and update

2011-08-19 Thread Zaky Katalan-Ezra
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 -- Regards, Zaky Katalan-Ezra

Re: save and update

2011-08-19 Thread Zaky Katalan-Ezra
email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054-7762312 -- Our newest site for the community: CakePHP Video Tutorials http

Re: Email Question

2011-08-19 Thread Zaky Katalan-Ezra
I think you need to use some desktop client that support read receipt in order to do that On Sat, Aug 20, 2011 at 12:15 AM, Krissy Masters naked.cake.ba...@gmail.com wrote: I am sending out emails and I want to know that the person has opened it. How does one go about this? I have a link in

Re: Multiple model

2011-08-18 Thread Zaky Katalan-Ezra
in the users table. Correct me if i got wrong concept. Thanks. nOLL. On Thu, Aug 18, 2011 at 10:45 AM, Zaky Katalan-Ezra procsh...@gmail.comwrote: Use users plugin. Create an agent table with the additional attribute and user_id to reference the user. Make /users/register visible to admin

Re: Subclassing one's own Controllers

2011-08-18 Thread Zaky Katalan-Ezra
I think you can find an example in Practical CakePHP Projects book On Thu, Aug 18, 2011 at 11:14 AM, Eric Blanpied sparkal...@gmail.comwrote: I'm a reasonably-experienced cake developer (several shipping apps over a few years), and I've now got a project with a well-developed Controller class

Re: Multiple model

2011-08-18 Thread Zaky Katalan-Ezra
admin details and agent details. I already insert user_id inside agent table but still does'nt work. I already create for user and group and it work. Thanks. nOLL On Thu, Aug 18, 2011 at 6:00 PM, Zaky Katalan-Ezra procsh...@gmail.comwrote: Add a role column to the user info for role based

Re: Multiple model

2011-08-17 Thread Zaky Katalan-Ezra
Use users plugin. Create an agent table with the additional attribute and user_id to reference the user. Make /users/register visible to admin only. After successful new user registration if the user role is agent, redirect to /admin/agent/add. If you choose to implement role based access you can

Re: Using SELECT... FOR UPDATE in cakephp

2011-08-13 Thread Zaky Katalan-Ezra
without using the $Model::query function (as this is highly not recommended) Why its not recommended? -- 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

Re: how to run script if a field in database table becomes 0

2011-08-10 Thread Zaky Katalan-Ezra
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 -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054-7762312 -- Our newest

Re: Newsletter plugin (send e-mails in backgroud)

2011-07-05 Thread Zaky Katalan-Ezra
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 -- Regards, Zaky Katalan-Ezra QA

Re: I need plugin to build social network

2011-07-04 Thread Zaky Katalan-Ezra
to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054-7762312 -- Our newest site for the community: CakePHP Video Tutorials http

Re: Wordpress and CakePHP - cake taking controll of URLS

2011-06-21 Thread Zaky Katalan-Ezra
Editing the .htaccess is a good method if the files you want to directly access is some how part of your cake solution. A calculator you downloaded from somewhere and you want to add to your app without the need to integrate it to you cake code, for example. But the problem here have no

Re: Wordpress and CakePHP - cake taking controll of URLS

2011-06-20 Thread Zaky Katalan-Ezra
Under Linux/Apache I did the following: 1. Created a symlink under /var/www for the blog #not under cake at all. 2. Added alias record in /etc/apache2/sites-available/yourdomai.vhost Alias /phpmyadmin/ /usr/share/phpmyadmin/ Alias /phpmyadmin /usr/share/phpmyadmin/ On Mon, Jun 20, 2011 at 6:26

Re: Filter out Elements in an Array

2011-06-07 Thread Zaky Katalan-Ezra
CackPHP is actually PHP. http://php.net/manual/en/function.array-filter.php On Tue, Jun 7, 2011 at 7:55 PM, Schemer illescas@gmail.com wrote: Hi, I am curious if there is an easy way to filter out values in an ordinary array with cake. I know with fields you can just call find on them

Re: MySQL Enum Values

2011-06-02 Thread Zaky Katalan-Ezra
http://bakery.cakephp.org/articles/jzimmerman/2006/10/03/baked-enums On Thu, Jun 2, 2011 at 5:36 AM, euromark dereurom...@googlemail.com wrote: enums are not supported by cake at least not the way you describe i guess i usually use

Re: What is the way to make Sub Pages

2011-06-02 Thread Zaky Katalan-Ezra
Is www.example.com/datas/data-titlehttp://www.example.com/datas/data-titlewill contain intro to only one article? If www.example.com/datas/data-title/about-this is not too long fetch it hide it and show it when the user click the 'more... ' link. If its big, create two actions in the

Re: How to cake bake in Linux environment - Cakephp?

2011-05-18 Thread Zaky Katalan-Ezra
1. cd cake/console/ 2. ./cake bake all You need to see this: Welcome to CakePHP v1.3.8 Console --- App : app Path: /home/zaky/Ubuntu One/initech/initech/valuebets/trunk/app ---

Re: Am I Violating MVC?

2011-05-18 Thread Zaky Katalan-Ezra
I agree with the helper approach if its a helper array. But there is not enough info about the array nature. As you know maintaining the code is also somthing you should think about so if the nature of the array is pure data nature I'll advice even writing a table and a model ... Its easy to

Re: Get a CakePHP project work locally

2011-05-13 Thread Zaky Katalan-Ezra
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 -- Regards, Zaky Katalan-Ezra QA

Re: CakePHP App - server switch causing phpMySQL extreme query speed/results variants (but my query IS returning results as expected)

2011-05-11 Thread Zaky Katalan-Ezra
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 -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054-7762312 -- Our newest site for the community: CakePHP

Re: if/else vs. try/catch

2011-04-23 Thread Zaky Katalan-Ezra
Handling exceptions which can be errors. You can use try catch as a if/else/case if you want to handle exceptions but its not the right way to handle other code flow. I admit its a bit tricky at first but its a good way of writing code. Exception by default bubble up/back in the execution path and

Re: Insert instead of update - tried everything

2011-04-15 Thread Zaky Katalan-Ezra
Set the id field to auto increment -- 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

Re: cake IDE

2011-04-14 Thread Zaky Katalan-Ezra
I think netbeans is the best. What feature you are looking for? -- 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

Re: Cakephp,Auth with Oracle connectivity

2011-04-08 Thread Zaky Katalan-Ezra
http://procsharp.blogspot.com/2011/04/connect-oracle-with-cakephp.html -- 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

Re: Group Chat in cake

2011-04-07 Thread Zaky Katalan-Ezra
Did you try to google? http://bakery.cakephp.org/articles/mattc/2007/02/03/ajax-chat-plugin http://bakery.cakephp.org/articles/mattc/2008/10/26/ajax-chat-plugin-using-jquery http://www.comm100.com/livechat/ -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: please help me

2011-04-06 Thread Zaky Katalan-Ezra
1. I don't understand what do you mean by this: but because I happen to have my register and login forms on the same page. 2. just a guess. after saving the user get the last id and call login with User and not RegUser if ($this-RegUser-save($this-data)) { $regNewId =

Re: creating a non-component for my controller

2011-04-06 Thread Zaky Katalan-Ezra
What is the problem with require_once()? -- 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

Re: Rather silly question

2011-04-06 Thread Zaky Katalan-Ezra
$this-Auth-user(); return null if no user is logged on. -- 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,

Re: cakephp multilingual + route

2011-04-04 Thread Zaky Katalan-Ezra
http://stackoverflow.com/questions/1794412/adding-a-prefix-to-every-url-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

Re: Multilingual website - Entries in .po file

2011-03-30 Thread Zaky Katalan-Ezra
Use poedit http://www.poedit.net/http://www.google.com/url?sa=Dq=http://www.poedit.net/ -- 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.

Re: syncing two databases

2011-03-29 Thread Zaky Katalan-Ezra
Do you mean Replicationhttp://dev.mysql.com/doc/refman/5.1/en/replication.html ? -- 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

Re: CakeDC users plugin

2011-03-24 Thread Zaky Katalan-Ezra
Did you put this in app_controller? public function beforeFilter() { $this-Auth-authorize = 'controller'; $this-Auth-fields = array('username' = 'email', 'password' = 'passwd'); $this-Auth-loginAction = array('plugin' = 'users', 'controller' = 'users', 'action' = 'login',

Re: CakeDC users plugin

2011-03-24 Thread Zaky Katalan-Ezra
I doesn't. I downloaded Sample-Comments-Applicationhttps://github.com/CakeDC/Sample-Comments-Applicationand used it as a reference -- 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

Re: CakeDC users plugin

2011-03-23 Thread Zaky Katalan-Ezra
I get this message: Missing Controller *Error: * *AdminController* could not be found. *Error: * Create the class *AdminController* below in file: app/controllers/admin_controller.php ?php class AdminController extends AppController { var $name = 'Admin'; } ? -- Our newest site for

Re: CakeDC users plugin

2011-03-23 Thread Zaky Katalan-Ezra
- S On 23 March 2011 17:33, Zaky Katalan-Ezra procsh...@gmail.com wrote: I get this message: Missing Controller *Error: * *AdminController* could not be found. *Error: * Create the class *AdminController* below in file: app/controllers/admin_controller.php ?php class

Re: login and register system

2011-03-22 Thread Zaky Katalan-Ezra
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 -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com Sites.IGeneriX.com 054

Re: CakeDC users plugin

2011-03-22 Thread Zaky Katalan-Ezra
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 -- Regards, Zaky Katalan-Ezra QA Administrator www.IGeneriX.com

Re: Cascade Cake vs DB

2011-03-15 Thread Zaky Katalan-Ezra
I try to follow these rules of thumb 1. If the database know how to do it do it in the database. 2. The less code you write the better. Writing functional processes in the database give you more option to test your logic. If it work in the database and not in the application you know where you

Re: problem checking if user is logged in from any controller other than users

2011-03-15 Thread Zaky Katalan-Ezra
in your app_controller beforeFilter add this line: $this-set('loginuser',$this-Auth-user()); In any view or layout you can check for $loginuser. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org

Re: Lock a page that is being edited by another user

2011-03-14 Thread Zaky Katalan-Ezra
I think you need some AJAX to ping the server with the post_id when someone open the post for edit. You need to ping every X second. When someone else trying to open the post for edit you check the ping table and if the post is in edit mode you can disable the last user edit button. you can even

Re: Readonly field

2011-03-11 Thread Zaky Katalan-Ezra
http://www.htmlcodetutorial.com/forms/_INPUT_DISABLED.html -- 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

Re: Database question

2011-03-07 Thread Zaky Katalan-Ezra
Use some GUI to manage your database. Mysql workbench http://wb.mysql.com/ is a good choice. Check the AI column in Alter table form. -- 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

Re: Database question

2011-03-07 Thread Zaky Katalan-Ezra
-updateAll( array( 'Post.view_count' = 'Post.view_count + 1' ), array( 'Post.id' = $post['Post']['id'] ) ); K From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf Of Zaky Katalan-Ezra Sent: Monday, March 07, 2011 5:04 AM To: cake-php@googlegroups.com Cc: Zachary Stenger

Re: CakePHP + Oracle : query other schema

2011-03-07 Thread Zaky Katalan-Ezra
Use database linkhttp://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_5005.htm On Mon, Mar 7, 2011 at 5:39 PM, guix69 g...@realguix.com wrote: Hello, My app is configured via database.php to query a specific oracle schema. Is there a way to define a model for data

Re: Database question

2011-03-07 Thread Zaky Katalan-Ezra
: On Mar 7, 2011, at 12:34, Zaky Katalan-Ezra wrote: On Mon, Mar 7, 2011 at 1:43 PM, Krissy Masters wrote: Since only 1 field can be auto-inc, that’s not really the best solution. I would suggest to update 1 field where CONDITION In the view function add in something like: $this-Model

Re: CakePHP + Oracle : query other schema

2011-03-07 Thread Zaky Katalan-Ezra
Did you try to create a view for the synoname? On Mon, Mar 7, 2011 at 9:53 PM, guix69 g...@realguix.com wrote: Database is the same, only the schema is different. My database.php contains the settings to connect to SCHEMA1 but I would like to make a model to query data from SCHEMA2 I tried

Re: how to redirect and let the server do some lengthy job in the background?

2011-02-27 Thread Zaky Katalan-Ezra
On a Linux machine create a bash file like this - #!/bin/sh ffmpeg -i $1 -r $2 $3 - The ampersand at the end tell the bash to run in the background. the $n is parameters. From php call it like this: $command = mybashpath.sh inputfile.mpg 24 outputfile.flv; *exec* ( $command ); As

Re: how to redirect and let the server do some lengthy job in the background?

2011-02-27 Thread Zaky Katalan-Ezra
You have the ff log to check if every thing is ok and the progress. You can create PID file to check if the process ended. Form my experience when dealing with files its better to inspect the filesystem in order to know what you have. The information from the database may conflict with the

Re: Conneect with Oracle

2011-02-22 Thread Zaky Katalan-Ezra
Linux? windows? Do you see OCI in phpinfo()? -- 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

Re: Conneect with Oracle

2011-02-19 Thread Zaky Katalan-Ezra
This one should work: var $default = array('driver' = 'oracle', 'connect' = 'oci', 'persistent' = false, 'host' = 'localhost', 'port'=1521, 'login' = 'postsUser', 'password' = 'pass', 'schema'='post', //The

Re: oracle 10g connection with cakephp 1.3

2011-02-15 Thread Zaky Katalan-Ezra
wrote: Window XP. On 15 February 2011 12:24, Zaky Katalan-Ezra procsh...@gmail.com wrote: Windows/Linux? distribution? -- 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

Re: Adding fields to a form dynamically - a complex case

2011-02-15 Thread Zaky Katalan-Ezra
So the librarian need to type only two values, right? Customer number (magnetic card), and books numbers (barcode). If so you can just use a text box with all the books numbers with comma separated like an email send to list. Do the rest in the database/model. -- Our newest site for the

Re: oracle 10g connection with cakephp 1.3

2011-02-14 Thread Zaky Katalan-Ezra
Windows/Linux? distribution? -- 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

Re: Need advice for custom ACL

2011-01-27 Thread Zaky Katalan-Ezra
In that case my honest advice to you is to revise your design. If it's not simple it's should simply not (In Hebrew it sounds better) -- 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

Re: Connecting to a remote database via SSH

2011-01-27 Thread Zaky Katalan-Ezra
There is no need of tunnelling in order to connect mysql workbench to remote database via SSH -- 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

Re: New to cake and need advice

2011-01-27 Thread Zaky Katalan-Ezra
Go for it I made the transition after 10 years in C#. I guess you want to do web applications so you have to learn new things any way. I think php and cakephp in particular is the best thing to start with. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org

Re: Need advice for custom ACL

2011-01-26 Thread Zaky Katalan-Ezra
not all of those authorizations are referred to a specific controller's action so cake's built-in ACL isn't very useful. Then what they refer to? It looks like you need to create an engine to create your views on the fly. -- Our newest site for the community: CakePHP Video Tutorials

Re: Connecting to a remote database via SSH

2011-01-25 Thread Zaky Katalan-Ezra
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 -- Regards, Zaky Katalan-Ezra QA

Re: Connecting to a remote database via SSH

2011-01-25 Thread Zaky Katalan-Ezra
://www.classoutfit.com On 26 Jan 2011, at 06:20, Zaky Katalan-Ezra wrote: 1. You need port 22 and 3306 to be open on the remote server 2. Install mysql workbench 3. In the new connection form set the connection method to tcp over ssh. 4. If you are using terminal and not GUI use ssh tunnel. And you may

  1   2   3   >