Re: White screen

2015-06-13 Thread Md Bayezid Alam
Check first the requirement is configured on ubuntu http://book.cakephp.org/3.0/en/installation.html#requirements . specially intl extension and mbstring extension On Sat, Jun 13, 2015 at 10:01 AM, joelro wrote: > I am running an Ubuntu 14.04 server and only get a white screen when I go > to my

Re: How to set Authorization wise view in the Form in CakePHP-3.0

2015-05-28 Thread Md Bayezid Alam
Thanks a lot. its working now. Is there any other easiest way to do so? On Thu, May 28, 2015 at 8:50 PM, euromark wrote: > check() and comparison is really a bad idea > the first returns bool, how should that ever === to a string? > wrapping that with !empty() makes this completely wrong > > if(

How to set Authorization wise view in the Form in CakePHP-3.0

2015-05-28 Thread Md Bayezid Alam
Hi All, I want to set an authorization in the registration of a form using CakePHP 3.0. Before asking here, i tried below things but no luck in my favor. Suppose i have role field in the usersTable like 'superuser', 'admin', 'user'. I want to provide permission superuser to make all the things

Re: Cakephp 3.0

2015-05-16 Thread Md Bayezid Alam
Hi, You can load Model by using $this->loadModel('YourTablenames'); Thanks On Sat, May 16, 2015 at 12:35 PM, Karthik Keyan wrote: > Hi > How to use multiple tables in single controller in *cakephp 3.0 * > > -- > Like Us on FaceBook https://www.facebook.com/CakePHP > Find us on Twitter htt

Re: CakePHP 3.0 - Confusion comes from

2015-04-16 Thread Md Bayezid Alam
As this process has been deprecated during the RC, so hoping soon to update the docs otherwise it will make a huge confusions among the readers. :) On Thu, Apr 2, 2015 at 7:31 PM, Dave Edwards wrote: > Hi Farid, > > I'm not decrying the value or usefulness of the documentation, or the huge > am

Re: cakephp 3.0 - which approach is best to get instance of a Table using loadModel or TableRegistry

2015-04-11 Thread Md Bayezid Alam
Thanks a lot [?] On Sun, Apr 12, 2015 at 2:00 AM, José Lorenzo wrote: > Answered in stackoverflow > > > On Saturday, April 11, 2015 at 8:00:02 PM UTC+2, Bayezid Alam wrote: >> >> Hi, >> >> A question arises on me is that which approach is the best from the >> performance sense to get an instance

cakephp 3.0 - which approach is best to get instance of a Table using loadModel or TableRegistry

2015-04-11 Thread Md Bayezid Alam
Hi, A question arises on me is that which approach is the best from the performance sense to get an instance of a table in CakePHP-3.0 which is not a controller's default one between loadModel or TableRegistry. 1. $this->loadModel('Articles'); OR2. TableRegistry::get('Articles'); Already asked

Re: CakePHP 3.0 - Confusion comes from

2015-03-31 Thread Md Bayezid Alam
Got it [?] Thanks On Tue, Mar 31, 2015 at 6:49 PM, Farid Aditya wrote: > no cookbook tutorial/example is fine > maybe > $this->Model->newEntity(); is to create new object with blank attribute > or create blank object container > $this->Model->patchEntity($oldObjectAttr , $newObjAttr); is to upd

Re: CakePHP 3.0 - Confusion comes from

2015-03-30 Thread Md Bayezid Alam
Good point.. [?] On Tue, Mar 31, 2015 at 2:28 AM, Dave Edwards wrote: > Thanks for the reply. > > In that case not only is the blog tutorial wrong, but the manual is > misleading as well. > > In http://book.cakephp.org/3.0/en/orm/saving-data.html patchEntity is not > introduced until the section

Re: CakePHP 3.0 - Confusion comes from

2015-03-29 Thread Md Bayezid Alam
That was my understanding too. On Mon, Mar 30, 2015 at 1:15 AM, Dave Edwards wrote: > Why has the first method (which is the correct one) got both > > $this->Articles->newEntity() > > and > > $this->Articles->patchEntity() > > when you are saving a new record? > > I thought that newEntity was u

Re: CakePHP 3.0 - Confusion comes from

2015-03-28 Thread Md Bayezid Alam
PR created by #2560 On Sat, Mar 28, 2015 at 6:43 PM, euromark wrote: > It would be cool if you could PR the corrections so that others don't trip > over it, too. > > mark > > > Am Samstag, 28. März 2015 10:35:52 UTC+1 schrieb Bayezid Alam: >> >> Ok, Thanks for reply.. :) >> >> On Sat, Mar 28, 2

Re: CakePHP 3.0 - Confusion comes from

2015-03-28 Thread Md Bayezid Alam
Ok, Thanks for reply.. :) On Sat, Mar 28, 2015 at 3:24 AM, euromark wrote: > The latter is deprecated, this changed during RC and as such the tutorial > needs some updating. > Thats all there is to it :) > > Mark > > > Am Freitag, 27. März 2015 15:37:26 UTC+1 schrieb Bayezid Alam: >> >> Hi, >> >

CakePHP 3.0 - Confusion comes from

2015-03-27 Thread Md Bayezid Alam
Hi, A confusion comes on my mind regarding the adding something on CakePHP 3.0 As example given on below link's in the add function. http://book.cakephp.org/3.0/en/tutorials-and-examples/blog/part-two.html#adding-articles public function add() { $article = $this->Articles->newEntity(

Re: Cake3 - Blog Tutorial Part 3 error founds

2015-03-27 Thread Md Bayezid Alam
Ohh, Thanks, But there was not any info to create the table first. On Fri, Mar 27, 2015 at 2:01 PM, José Lorenzo wrote: > You need to create the categories table first. > > > On Friday, March 27, 2015 at 5:34:46 AM UTC+1, Bayezid Alam wrote: >> >> Hi, >> >> I am getting below error while execu

Cake3 - Blog Tutorial Part 3 error founds

2015-03-26 Thread Md Bayezid Alam
Hi, I am getting below error while executing "*bin/cake bake model Categories*" Note: i followed all the above things from http://book.cakephp.org/3.0/en/tutorials-and-examples/blog/part-three.html ubuntu@ubuntu:/var/www/html/cake3blog$ bin/cake bake model Categories Welcome to CakePHP v3.0.0 C

Re: 3.0 - How to add a form data using its primarykey to its associated tables

2014-12-14 Thread Md Bayezid Alam
i can't understand. could you please give me an example if you have? Note: *I want to create a new record at Costs & FixedCosts against Units ID but don't want to add a new record at UnitsTable* Thanks in advance Bayezid On Sun, Dec 14, 2014 at 3:36 AM, José Lorenzo wrote: > > You either need

Re: 3.0 - How to add a form data using its primarykey to its associated tables

2014-12-13 Thread Md Bayezid Alam
Thanks a lot, but it not saving to Costs & FixedCosts Table somehow, i tried, even if its not executing after $this->request->is public function add_cost($uId){ if (!$uId){ throw new NotFoundException(__('Unit id Not found, try with a valid ID')); } $unitId =

Re: 3.0 - How to add a form data using its primarykey to its associated tables

2014-12-12 Thread Md Bayezid Alam
'errors' => [], 'repository' => 'FixedCosts' } ], 'dirty' => [ 'cost' => true, 'fixed_cost' => true

Re: 3.0 - How to add a form data using its primarykey to its associated tables

2014-12-12 Thread Md Bayezid Alam
Hello Lerenzo, Please find the UnitsTable and debug($unit) as follows: *UnitsTable:* table('units'); $this->addBehavior('Timestamp'); $this->primaryKey('id'); // association goes here $this->belongsTo('Houses',[ 'foreignKey' => 'house_id' ]);

Re: 3.0 - How to add a form data using its primarykey to its associated tables

2014-12-11 Thread Md Bayezid Alam
HI May i get a suggestion on this? I did google but found nothing. Thanks Bayezid On Thu, Dec 11, 2014 at 10:07 PM, Md Bayezid Alam wrote: > > Hi, > > > i have Tables : > > Units hasOne costs & hasOne fixed_costs > > i want to add data to costs and fixed_co

3.0 - How to add a form data using its primarykey to its associated tables

2014-12-11 Thread Md Bayezid Alam
Hi, i have Tables : Units hasOne costs & hasOne fixed_costs i want to add data to costs and fixed_costs table using units's primary key from units Controller. i did below things but its creating a new record at unit Table instead of using primaryKey Form at unitsController: Form->create($uni

Re: Cakephp 3.0 - How to apply condition at find list method

2014-11-20 Thread Md Bayezid Alam
lect(['id', 'name']) > ->where(['id !=' => 1]) > ->order(['created' => 'DESC']); > > > Em Thu Nov 20 2014 at 12:07:22, Md Bayezid Alam > escreveu: > >> Dear All, >> >> How do i

Cakephp 3.0 - How to apply condition at find list method

2014-11-20 Thread Md Bayezid Alam
Dear All, How do i apply condition at find('list') at Cakephp 3.0? i have a Companies, Departments and Employees Companies hasMany Department. Companies hasMany Employees Departments has Many Employees. i want to add Employees from company & want to get departments list of that company. My Add

Re: Can't visit controllers/* Cakephp 3

2014-10-24 Thread Md Bayezid Alam
Thanks a lot, it was a configuration issue. I did just below configuration Options Indexes FollowSymLinks AllowOverride None Require all granted to Options Indexes FollowSymLinks AllowOverride all Require all granted Thanks :) Bayezid On Fri, Oct 24, 2014 at 3:28 P

Re: 3.0 Database Error : SQLSTATE[HY000] [14] unable to open database file

2014-09-29 Thread Md Bayezid Alam
Sorry, i got the answer, it was an issue of permission.. Thanks On Mon, Sep 29, 2014 at 9:42 PM, Md Bayezid Alam wrote: > Dear All, > i am getting the subjected Error for beta-2 of cake3, while first browsing > from localhost. > > sub-hints: > If you are using SQL keywor

3.0 Database Error : SQLSTATE[HY000] [14] unable to open database file

2014-09-29 Thread Md Bayezid Alam
Dear All, i am getting the subjected Error for beta-2 of cake3, while first browsing from localhost. sub-hints: If you are using SQL keywords as table column names, you can enable identifier quoting for your database connection in config/app.php. *Notice: * If you want to customize this error mes

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-20 Thread Md Bayezid Alam
nconvenience. >> >> Thanks >> Bayezid >> >> >> >> On Tue, May 20, 2014 at 1:48 AM, José Lorenzo wrote: >> >>> what do you mean it is working as gmt? >>> >>> >>> On Monday, May 19, 2014 7:55:10 PM UTC+2, Bayez

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-20 Thread Md Bayezid Alam
but format() function is not working here >> >> >> On Mon, May 19, 2014 at 9:28 PM, Md Bayezid Alam wrote: >> >>> I added Timestamp behavior at ArticlesTable >>> >>> public function initialize(array $config) { >>> $this->addBeha

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-19 Thread Md Bayezid Alam
Thanks Jose, its working as GMT but format() function is not working here On Mon, May 19, 2014 at 9:28 PM, Md Bayezid Alam wrote: > I added Timestamp behavior at ArticlesTable > > public function initialize(array $config) { > $this->addBehavior('Timestamp'); &

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-19 Thread Md Bayezid Alam
.ctp Line: 22 ( created->format(DATE_RFC850)) ?> )* *Tried both format() and removing format().* Without format() method, it is saving date as NULL. On Mon, May 19, 2014 at 7:46 PM, Md Bayezid Alam wrote: > Nope, i did not. > > > > > On Mon, May 19, 2014 at 7:32 PM, José

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-19 Thread Md Bayezid Alam
Nope, i did not. On Mon, May 19, 2014 at 7:32 PM, José Lorenzo wrote: > Did you add the Timestamp behavior to your Profiles table? > > > On Monday, May 19, 2014 3:17:39 PM UTC+2, Bayezid Alam wrote: >> >> Thanks a lot, i changed from username to user_id and its working perfectly >> >> but the

Re: 3.0 - Cake not connecting to MySql DB

2014-05-19 Thread Md Bayezid Alam
Thanks a lot everyone, somehow it is working for me.. On Sun, Mar 16, 2014 at 9:38 PM, Leandro Machado Pereira < llperei...@gmail.com> wrote: > The error composer timeout, see this: > > https://getcomposer.org/doc/04-schema.md#config > > http://www.papayasoft.com/2013/08/22/composer-process-time

Re: 3.0 - Saving data using Form with HasOne relationship

2014-05-19 Thread Md Bayezid Alam
Thanks a lot, i changed from username to user_id and its working perfectly but the second one is not working here is my table structure *CREATE TABLE IF NOT EXISTS `profiles` (* * `id` int(11) NOT NULL AUTO_INCREMENT,* * `name` varchar(40) NOT NULL,* * `address` varchar(70) NOT NULL,* * `ema

3.0 - Saving data using Form with HasOne relationship

2014-05-18 Thread Md Bayezid Alam
Dear All, I am new & trying from 3.0. I have made "User" hasOne "Profile" Association with DB *users [ id, username, password, created, modified ]* *&* *profiles [id, name, address, email, mobile, user_id, created, modified]* In UsersTable.php *"class UsersTable extends Table{* *public fun

Re: 3.0 - How to print/debug from Controller like Cake 2.xx

2014-04-30 Thread Md Bayezid Alam
wrote: >> >> I tried by pr/debug($this->request->data); pr/debug($article) but >> showing nothing >> >> >> On Wed, Apr 30, 2014 at 11:51 PM, Md Bayezid Alam >> wrote: >> >>> i tried but It's showing nothing.. Could you please let

Re: 3.0 - How to print/debug from Controller like Cake 2.xx

2014-04-30 Thread Md Bayezid Alam
I tried by pr/debug($this->request->data); pr/debug($article) but showing nothing On Wed, Apr 30, 2014 at 11:51 PM, Md Bayezid Alam wrote: > i tried but It's showing nothing.. Could you please let me know how can i > get this? Thanks > > > On Wed, Apr 30, 2014 at

Re: 3.0 - How to print/debug from Controller like Cake 2.xx

2014-04-30 Thread Md Bayezid Alam
i tried but It's showing nothing.. Could you please let me know how can i get this? Thanks On Wed, Apr 30, 2014 at 11:24 PM, euromark wrote: > And what is your problem? > The function still exists and can be used the same way. > > > Am Mittwoch, 30. April 2014 16:27:00 UTC+2 schrieb Bayezid Ala

3.0 - How to print/debug from Controller like Cake 2.xx

2014-04-30 Thread Md Bayezid Alam
Dear All, Is there any way to print from Controller? For example, I have a form like Form->create($article); echo $this->Form->input('title'); echo $this->Form->input('body', ['rows' => '3']); echo $this->Form->button(__('Save Articles')); echo $this->Form->end(); ?> I have fun

Re: 3.0 - Cake not connecting to MySql DB

2014-03-04 Thread Md Bayezid Alam
after updating, Its not working, i may missing anything. 'Datasources' => [ 'default' => [ 'className' => 'Cake\Database\Connection', 'driver' => 'Cake\Database\Driver\Mysql', 'persistent' => false, 'host' => 'localhost', 'login' => 'loginname', 'password' => 'password', 'database' => 'cake3_db',

Conditional Model Query

2012-12-09 Thread Md
Hi there, I have a small application that has three tables. users, roles, and role_users. The role_users table is a join table as a user can have multiple roles. In my UsersController class I am trying to get a count for the number of roles the current user has where there is a enduserid =

Trouble with model associations and query.

2012-12-09 Thread Md
I am having trouble returning a query. I have the following setup Users - users class of all users in the system. Roles - roles class with a set of available roles. E.g. teacher, student, tutor RoleUsers - a mapping table between users and roles as a single user can have multiple roles. My U

Just Register and earn money

2010-12-05 Thread Md Moniruzzaman
Hi Dear Just Click this Link and Register. After than Click The VIew Ads and view the ads and Earn Money. Its just a Handsome cash for you. Really its a Hand some cash. Here is the link : * http://www.adserviceptc.com/index.php?ref=shimul27*

How to use CMS in cake php.

2010-02-01 Thread Md Moniruzzaman
How to use CMS in cake php. I want to whole site content control in cake php admin panel. Can you help me? -- Regards Md.Moniruzzaman Web Developer Contact no:+088-01712027826 United Group International Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakeP