Yii Framework Forum: Awecrud - Yii Framework Forum

Jump to content

  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

Awecrud A new way to generate code Rate Topic: -----

#41 User is offline   Roberto Braga 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 18-February 13

Posted 19 February 2013 - 06:09 AM

At first some spec details:
I'm using a LAMP stack withphp5.4, yii 1.1.13, yiibooster 1.0.5, awecrud 0.10

Yiibooster is installed and configured correctly since when I use the bootstrap generator It works and gnerate working pages.

It is some day I am trying to use your extension but I'm having some problem...
I installed it and it seem to work, at least I am able to generate the code using gii
The problem is when I try to access the pages:
The list /index.php/employee which is working
but when I try to either create or mange I get an almost blank page (without errors even in the trace)
Attached File  create.png (71.8K)
Number of downloads: 32
the page is not generated, there is no header or body tag, just some html lines
Attached File  html.png (20.19K)
Number of downloads: 30
Almost the same for /index.php/employee/admin which in plus even if weblog is active does not generate any output for it.
Attached File  admin.png (7.87K)
Number of downloads: 19
0

#42 User is offline   laboral-php 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 20-February 13

Posted 20 February 2013 - 05:08 PM

Hola tengo el siguiente error al ejecutar aweCrud despues de haber generado los modelos con aweModel:

YiiBase::include(EActiveRecordRelationBehavior.php) [<a href='yiibase.include'>yiibase.include</a>]: failed to open stream: No such file or directory

Aparentemente da un error con EActiveRecordRelationBehavior.php

Las capturas de error son las siguientes
Attached File  error capture 01.JPG (146.79K)
Number of downloads: 15
Attached File  error capture 02.JPG (229.97K)
Number of downloads: 15

AweCrud 0.10
Apache Web Server Version 2.2.8
PHP Script Language Version 5.2.6
MySQL Database Version 5.0.51b
0

#43 User is offline   robregonm 

  • Experienced Yii Developer
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 601
  • Joined: 30-July 09
  • Location:Colombia

Posted 25 February 2013 - 09:42 AM

Hi Roberto,
Could you make sure that the model has been generated using AweCrud?
Also, make sure the config/main.php file is correctly configured (using AweCrud).

Regards.
Ricardo Obregón
LinkedIn Profile
YiiFramework en Español - http://yiiframework.co/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx, MySQL, PostgreSQL, Yii 1.x & 2.x, CanJS and more.
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#44 User is offline   robregonm 

  • Experienced Yii Developer
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 601
  • Joined: 30-July 09
  • Location:Colombia

Posted 25 February 2013 - 09:45 AM

Hola pcalafatich,
Ese error se produce porque activó el uso de "EActiveRecordRelationBehavior", pero no ha agregado la extensión al proyecto.
Cuénteme si tiene preguntas al respecto.
Saludos.
Ricardo Obregón
LinkedIn Profile
YiiFramework en Español - http://yiiframework.co/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx, MySQL, PostgreSQL, Yii 1.x & 2.x, CanJS and more.
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#45 User is offline   robregonm 

  • Experienced Yii Developer
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 601
  • Joined: 30-July 09
  • Location:Colombia

Posted 25 February 2013 - 09:47 AM

Roberto,
Please enable "error_reporting" in php file in order to display the errors (also, show_errors).
By the way, sometimes, this error is caused because the model has syntax errors.

Regards.
Ricardo Obregón
LinkedIn Profile
YiiFramework en Español - http://yiiframework.co/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx, MySQL, PostgreSQL, Yii 1.x & 2.x, CanJS and more.
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#46 User is offline   Argenis Bolivar 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 6
  • Joined: 27-February 11

Posted 28 February 2013 - 11:41 AM

Hola Ricardo, estoy tratando de sustituir el checkBoxList en una relacion many-many por algo como eSelect2(Multiple seleccion), pero no lo he logrado, alguna idea o recomendación? alguna extensión que conozcas? Gracias
0

#47 User is offline   robregonm 

  • Experienced Yii Developer
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 601
  • Joined: 30-July 09
  • Location:Colombia

Posted 04 March 2013 - 01:09 PM

Hola Argenis,
Para facilitar el manejo de MANY-MANY es positivo tener una extensión como EActiveRecordRelationBehavior o with-related-behavior (Totalmente comptibles con AweCrud, de hecho AweCrud incluye soporte para esas extensiones)
Y para el manejo de los mùltiples valores, puede usarse la extensión que ud menciona...
Aquí le encío algunsa alternativas en jQuery que aunque no existen versiones listas para usar en Yii, pueden implementarse de forma sencilla:
http://www.erichynds...iselect-widget/

Saludos.
Ricardo Obregón
LinkedIn Profile
YiiFramework en Español - http://yiiframework.co/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx, MySQL, PostgreSQL, Yii 1.x & 2.x, CanJS and more.
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#48 User is offline   abhilashrajr 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 12
  • Joined: 11-March 13
  • Location:India

Posted 15 March 2013 - 01:36 AM

AweActiveForm and its behaviors do not have a method or closure named "datepickerRow".
datepicker shows error
0

#49 User is offline   robregonm 

  • Experienced Yii Developer
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 601
  • Joined: 30-July 09
  • Location:Colombia

Posted 15 March 2013 - 10:29 AM

@abhilashrajr Thanks for reporting, I'm going to check that out and publish a fix as soon as possible.

Regards.
Ricardo Obregón
LinkedIn Profile
YiiFramework en Español - http://yiiframework.co/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx, MySQL, PostgreSQL, Yii 1.x & 2.x, CanJS and more.
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#50 User is offline   robregonm 

  • Experienced Yii Developer
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 601
  • Joined: 30-July 09
  • Location:Colombia

Posted 15 March 2013 - 10:30 AM

@abhilashrajr Could you please post the full error message and backtrace (if any) in order to check what is going on?

Thanks.
Ricardo Obregón
LinkedIn Profile
YiiFramework en Español - http://yiiframework.co/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx, MySQL, PostgreSQL, Yii 1.x & 2.x, CanJS and more.
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#51 User is offline   robregonm 

  • Experienced Yii Developer
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 601
  • Joined: 30-July 09
  • Location:Colombia

Posted 28 April 2013 - 06:29 PM

New version 0.12 of AweCrud released, this version includes some enhancements related to i18n mainly.
Also improves the IDEs autocompletion in generated views.
Direct Download version 0.12.
Ricardo Obregón
LinkedIn Profile
YiiFramework en Español - http://yiiframework.co/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx, MySQL, PostgreSQL, Yii 1.x & 2.x, CanJS and more.
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#52 User is offline   robregonm 

  • Experienced Yii Developer
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 601
  • Joined: 30-July 09
  • Location:Colombia

Posted 03 May 2013 - 03:12 PM

Support for MANY_MANY relations added in version 0.13. Feel free to download, test and give a feedback about AweCrud.
Ricardo Obregón
LinkedIn Profile
YiiFramework en Español - http://yiiframework.co/ - Yii Code Generator for Bootstrap
http://obregon.co/ - https://1server.co/
PHP 5.5+, nginx, MySQL, PostgreSQL, Yii 1.x & 2.x, CanJS and more.
Follow me: @robregonm & @obregonco & @1ServerCo.
0

#53 User is offline   ben_rivero 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 2
  • Joined: 21-February 11

Posted 20 May 2013 - 11:09 PM

Hi @abhilashrajr for your problem only need to update yii booster... download the last version from the yiibooster site and update your current version in extensions. =)
0

#54 User is offline   Abed Alzain 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 15
  • Joined: 22-April 12

Posted 27 January 2014 - 09:33 AM

thanks
W: http://pph.me/abed
Skype: abed.m.alzain
0

#55 User is offline   rdrodrig 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 1
  • Joined: 10-June 14

Posted 10 June 2014 - 05:36 PM

Permiteme felicitarte por tus aportes a la comunidad de desarrollo Yii en Español. Precisamente hace poco estoy estudiando y entiendiendo la filosofia y estructura de funcionamiento de Yii. En ese camino quiero explorar como trabaja el componente CRUD (Create, Read, Update, Delete) de Yii sobre tablas relacionadas con llaves foraneas MySQL InnoDB. Estoy probando tu extension AweCrud y entiendo que hay que instalar otra extension para que funcione la generacion con llaves foraneas. Estas extensiones son [activerecord-relation-behavior] y [with-related-behavior]. Por favor como se instalan correctamente y se integran con AweCrud. No he podido lograr que funcionen :(

Muchas gracias por tu apoyo.
0

#56 User is offline   kavitama 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 22
  • Joined: 20-September 11

Posted 13 August 2014 - 06:06 AM

Hi Roberto,

I found that changing the .../AweCrud/templates/default/admin.php with the following:
- from = '$label'=>array('index'),
- to = \$model->label(2) => array('index'),


I could solve an issue with translation of he breadcrumbs in the admin view but I am not able to do something similar to the index.php


Any suggestion ?


Thanks in advance


0

Share this topic:


  • (3 Pages)
  • +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users