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

2012-08-01 Thread Zaky Katalan-Ezra
-php> >> >> >> >> -- >> ==**==**= >> PHP for E-Biz: http://sanisoft.com >> ==**==**= >> > -- > Our newest site for the community:

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 wrote: > $this->RequestHandler -- Regards, Zak

Re: set::sort question

2012-07-30 Thread Zaky Katalan-Ezra
n to sort first for Member.id ASC >>>> and then for Payment.ASC >>>> >>>> Can please someone explain me how I need to write the set::sort syntax? >>>> I never used it before and quite unsure how it has to be done. >>>> >>>>

Re: Problem masking errors in cakePhP

2011-11-22 Thread Zaky Katalan-Ezra
Create app_error file; controller->log($this,'err'); $this->controller->beforeFilter(); parent::_outputMessage($template); } } ?> Taken from here: http://www.bradezone.com/2009/05/21/cakephp-beforefilter-and-the-error-error/ On Tue, Nov 22, 2011 at 8:23 AM, rach wrote: > Hi

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 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 > view. > Here's my

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: 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 wrote: > 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 css file and send erro

Re: Plupload and Media Plugin

2011-11-06 Thread Zaky Katalan-Ezra
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 Vi

Re: Cake2.0 not recognizing my PHPUnit installation

2011-10-24 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 wrote: > Ok, I downloaded and put PHPUnit into my vendors folder. Now when I > run test.php I g

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 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 Order::impo

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 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, > Environments has ma

Re: How do you track your issues / bugs ?

2011-10-11 Thread Zaky Katalan-Ezra
I am using Unfuddle with great success. I also like Trac On Tue, Oct 11, 2011 at 11:52 AM, euromark wrote: > exactly, jeremy :) > same with me > > On 11 Okt., 07:20, Jeremy Burns | Class Outfit > wrote: > > I've been using Mantis for about three

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 me

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

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 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 reviewed by the auth

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-02 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 e

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 wrote: > Just wondering if this issue has been resolved? I'm having the same >

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 t

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 wrote: > You can't use sessions, Paypal is talking to your site, not the user. > Once the user leaves for pa

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 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 > http://tv.cakephp.org

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 wrote: > I'm very new to CakePHP and MVC, so this is probably b

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

2011-09-19 Thread Zaky Katalan-Ezra
ons. > > > 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: 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 wrote: > I have this problem, i create a form that will display select field > here's my code: > echo $this->Form->input('proveedore_id'); > echo $

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: 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: filtering model result bases on user rights

2011-09-15 Thread Zaky Katalan-Ezra
cument have at least one token in set B in common. > > > On Sep 15, 10:42 am, Zaky Katalan-Ezra wrote: > > How do you save the permissions in the database? > > > > > > > > On Thu, Sep 15, 2011 at 10:53 AM, Timmay wrote: > > > Hi all, > > > &

Re: filtering model result bases on user rights

2011-09-15 Thread Zaky Katalan-Ezra
roup, 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 Vide

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 th

Re: display last 5 inserted image

2011-09-14 Thread Zaky Katalan-Ezra
ons. > > > 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: Login to a CakePHP application from another site doesn't work

2011-09-14 Thread Zaky Katalan-Ezra
HP 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.IGe

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 wrote: > Dear Amit > > There is no problem. I am interested in part time job. > > Regares > > Am

Re: Media plugin transferTo

2011-09-14 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-Ez

Re: Why is this better?

2011-09-12 Thread Zaky Katalan-Ezra
views. > > -- > 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 t

Re: pass information to the view

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

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 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)) { > $this->da

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 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 setup the Auth l

Re: Noob Looking for help editing site.

2011-08-29 Thread Zaky Katalan-Ezra
what file in what 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" wrote: > &

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 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 seem to be a n

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
#x27;,'State.state'))); > > > > > $this->set(compact('states')); > > > > > It will save the form as i needed it, but my find will not work > > > because there is no id for the where clause. > > > > > i just need

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 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 the email they can click

Re: save and update

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

Re: save and update

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

Re: Multiple model

2011-08-18 Thread Zaky Katalan-Ezra
before, > i plan not to mix 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 wrote: &g

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 wrote: > 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 that now requir

Re: Multiple model

2011-08-18 Thread Zaky Katalan-Ezra
since my login function will recall username and password in > users table. There is no agent's info 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 > wrote: > >> Use use

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 c

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 rela

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

2011-08-10 Thread Zaky Katalan-Ezra
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.IG

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

2011-07-05 Thread Zaky Katalan-Ezra
p.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://gr

Re: I need plugin to build social network

2011-07-04 Thread Zaky Katalan-Ezra
gt; 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 sit

Re: Wordpress and CakePHP - cake taking controll of URLS

2011-06-20 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 connection

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 PM

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 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 and set your cond

Re: What is the way to make Sub Pages

2011-06-01 Thread Zaky Katalan-Ezra
Is 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 posts_cont

Re: MySQL Enum Values

2011-06-01 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 wrote: > enums are not supported by cake > at least not the way you describe i guess > > i usually use > > http://www.dereuromark.de/2010/06/24/static-enums-or-semihardcoded-attributes/

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 mai

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: Get a CakePHP project work locally

2011-05-13 Thread Zaky Katalan-Ezra
nsubscr...@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

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
array_push($options['conditions'], "dental_cost > 0"); > } > $url = array('controller' => 'plans', 'action' => 'search'); > $this->paginate = $options; > $this->set('searchdetails&#x

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 an

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 cake-php+

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 g

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 from

Re: Group Chat in cake

2011-04-06 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 Chec

Re: Rather silly question

2011-04-05 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: creating a non-component for my controller

2011-04-05 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 cak

Re: please help me

2011-04-05 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 = $this->

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 unsu

Re: Multilingual website - Entries in .po file

2011-03-30 Thread Zaky Katalan-Ezra
Use poedit 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 Replication ? -- 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 unsu

Re: CakeDC users plugin

2011-03-24 Thread Zaky Katalan-Ezra
I doesn't. I downloaded 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 oth

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' =>

Re: CakeDC users plugin

2011-03-23 Thread Zaky Katalan-Ezra
.org/view/950/Prefix-Routing > - S > > > > > On 23 March 2011 17:33, Zaky Katalan-Ezra wrote: > >> I get this message: >> Missing Controller >> >> *Error: * *AdminController* could not be found. >> >> *Error: * Create the class *AdminController*

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 -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakeP

Re: CakeDC users plugin

2011-03-22 Thread Zaky Katalan-Ezra
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. > > &g

Re: login and register system

2011-03-22 Thread Zaky Katalan-Ezra
rg > 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://grou

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.o

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 nee

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 te

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 group,

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 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 using a syn

Re: Database question

2011-03-07 Thread Zaky Katalan-Ezra
: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

Re: CakePHP + Oracle : query other schema

2011-03-07 Thread Zaky Katalan-Ezra
Use database link On Mon, Mar 7, 2011 at 5:39 PM, guix69 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 stored in an

Re: Database question

2011-03-07 Thread Zaky Katalan-Ezra
;Model->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 K

Re: Database question

2011-03-07 Thread Zaky Katalan-Ezra
Use some GUI to manage your database. Mysql workbench 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 o

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 filesyst

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 y

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 to

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', //Th

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 community

Re: oracle 10g connection with cakephp 1.3

2011-02-15 Thread Zaky Katalan-Ezra
t:1521/xe', 'prefix' => '' ); I fail to bake anything so I baked with mysql and then change to Oracle connection On Tue, Feb 15, 2011 at 11:13 AM, Tosun or Shadin wrote: > Window XP. > > On 15 February 2011 12:24, Zaky Katalan-Ezra wrot

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 cake-php+unsubs

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 Check

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 questions

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 o

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 http:/

Re: Connecting to a remote database via SSH

2011-01-25 Thread Zaky Katalan-Ezra
tabase via SSH, so need to have the right configuration in > database.php. That's where I need the guidance. > > > Jeremy Burns > *Class Outfit* > * > * > jeremybu...@classoutfit.com > http://www.classoutfit.com > > On 26 Jan 2011, at 06:20, Zaky Katalan-Ezra wrote

Re: Connecting to a remote database via SSH

2011-01-25 Thread Zaky Katalan-Ezra
legroups.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

  1   2   3   >