but even if i specify the 'id' in the options array thc ode that i see produced by the widget is always:
jQuery(document).ready(function() { $('#markItUp').markItUp(mySettings); 5});
Posted 18 June 2009 - 07:53 AM
jQuery(document).ready(function() { $('#markItUp').markItUp(mySettings); 5});
Posted 18 June 2009 - 04:33 PM
CPSMarkItUpWidget( array( 'target' => '#myTextArea' ) );
Posted 19 June 2009 - 02:30 AM
Quote
CPSMarkItUpWidget( array( 'target' => '#myTextArea' ) );
Posted 19 June 2009 - 12:25 PM
Posted 19 June 2009 - 11:43 PM
<?php
class PostController extends Controller
...
public function actionExamples()
{
$this->render( 'application.extensions.pogostick.widgets.examples.jqui_examples' );
}
}
PHP Error
Description
include(CPSjqUIWrapper.php) [<a href='function.include'>function.include</a>]: failed to open stream: No such file or directory
Source File
D:xampphtdocsframeworkYiiBase.php(310)
00298: * @param string class name
00299: * @return boolean whether the class has been loaded successfully
00300: */
00301: public static function autoload($className)
00302: {
00303: // use include so that the error PHP file may appear
00304: if(isset(self::$_coreClasses[$className]))
00305: include(YII_PATH.self::$_coreClasses[$className]);
00306: else if(isset(self::$_classes[$className]))
00307: include(self::$_classes[$className]);
00308: else
00309: {
00310: include($className.'.php');
00311: return class_exists($className,false) || interface_exists($className,false);
00312: }
00313: return true;
00314: }
00315:
00316: /**
00317: * Writes a trace message.
00318: * This method will only log a message when the application is in debug mode.
00319: * @param string message to be logged
00320: * @param string category of the message
00321: * @see log
00322: */
Stack Trace
#0 D:xampphtdocsframeworkYiiBase.php(310): autoload()
#1 unknown(0): autoload()
#2 D:xampphtdocsndragonprotectedextensionspogostickwidgetsexamplesjqui_examples.php(18): spl_autoload_call()
#3 D:xampphtdocsframeworkwebCBaseController.php(119): require()
#4 D:xampphtdocsframeworkwebCBaseController.php(88): PostController->renderInternal()
#5 D:xampphtdocsframeworkwebCController.php(701): PostController->renderFile()
#6 D:xampphtdocsframeworkwebCController.php(640): PostController->renderPartial()
#7 D:xampphtdocsndragonprotectedcontrollersPostController.php(205): PostController->render()
#8 D:xampphtdocsframeworkwebactionsCInlineAction.php(32): PostController->actionExamples()
#9 D:xampphtdocsframeworkwebCController.php(300): CInlineAction->run()
#10 D:xampphtdocsframeworkwebfiltersCFilterChain.php(129): PostController->runAction()
#11 D:xampphtdocsframeworkwebfiltersCFilter.php(41): CFilterChain->run()
#12 D:xampphtdocsndragonprotectedcomponentsController.php(7): AccessControlFilter->filter()
#13 D:xampphtdocsframeworkwebfiltersCInlineFilter.php(59): PostController->filterAccessControl()
#14 D:xampphtdocsframeworkwebfiltersCFilterChain.php(126): CInlineFilter->filter()
#15 D:xampphtdocsframeworkwebCController.php(283): CFilterChain->run()
#16 D:xampphtdocsframeworkwebCController.php(257): PostController->runActionWithFilters()
#17 D:xampphtdocsframeworkwebCWebApplication.php(332): PostController->run()
#18 D:xampphtdocsframeworkwebCWebApplication.php(120): CWebApplication->runController()
#19 D:xampphtdocsframeworkbaseCApplication.php(133): CWebApplication->processRequest()
#20 D:xampphtdocsndragonindex.php(11): CWebApplication->run()
Posted 20 June 2009 - 12:03 AM
Posted 20 June 2009 - 12:19 AM
Installation
One-sentence summary of this page.
Introduction
Add your content here.
Details
Add your content here. Format your content with:
* Text in bold or italic
* Headings, paragraphs, and lists
* Automatic links to other wiki pages
Posted 20 June 2009 - 12:52 AM
<?php
Yii::setPathOfAlias( 'pogostick', 'D:xampphtdocsndragonprotectedextensionspogostick' );
// Yii::setPathOfAlias( 'pogostick', dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.DIRECTORY_SEPARATOR.'extensions'.DIRECTORY_SEPARATOR.'pogostick' );
// This is the main Web application configuration. Any writable
// CWebApplication properties can be configured here.
return array(
'basePath'=>dirname(__FILE__).DIRECTORY_SEPARATOR.'..',
'name' => 'Yii Skeleton Application',
'defaultController'=>'site',
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'application.components.helpers.*',
'application.components.behaviors.*',
'application.components.widgets.*',
'application.extensions.*',
'pogostick.base.*',
'pogostick.behaviors.*',
'pogostick.components.*',
'pogostick.events.*',
'pogostick.helpers.*',
'pogostick.widgets.*',
),
...
...
public function actionExamples()
{
$this->render( 'application.extensions.pogostick.widgets.examples.jqui_examples' );
// $this->render( 'pogostick.widgets.examples.jqui_examples' );
}
...
Posted 20 June 2009 - 12:42 PM
'pogostick.widgets.jqui.*'
public function actionExamples()
{
$this->render( 'pogostick.widgets.examples.jqui_examples' );
}
Posted 04 August 2009 - 10:30 PM
<?php
CPSjqGridWidget::create(array(
'target'=>'#list',
'url'=> CHtml::normalizeUrl(array('Example','data'=>'test')),
'datatype'=>'xml',
'mtype'=>'GET',
'colNames'=>array('Inv No','Date', 'Amount','Tax','Total','Notes'),
// 'colModel'=>array(
// array('name'=>'invid', 'index'=>'invid', 'width'=>55),
// array('name'=>'invdate', 'index'=>'invdate', 'width'=>90),
// array('name'=>'amount', 'index'=>'amount', 'width'=>80, 'align'=>'right'),
// array('name'=>'tax', 'index'=>'tax', 'width'=>80, 'align'=>'right'),
// array('name'=>'total', 'index'=>'total', 'width'=>80, 'align'=>'right'),
// array('name'=>'note', 'index'=>'note', 'width'=>150, 'sortable'=>'false'),
// ),
'pager'=>'#pager',
'rowNum'=>10,
'rowList'=>array(10,20,30),
'sortname'=>'invid',
'sortorder'=>'desc',
'viewrecords'=>'true',
'caption'=>'My first grid',
'theme' => 'cupertino',
));
?>
Description
Array to string conversion
Source File
C:\WAPP\apache2\htdocs\seoportal\protected\extensions\pogostick\behaviors\CPSComponentBehavior.php(449)
00437: return $this->setOption( $sName, $oValue );
00438:
00439: return parent::__set( $sName, $oValue );
00440: }
00441:
00442: /**
00443: * Check to see if the value follows a callback function pattern
00444: *
00445: * @param string $sValue
00446: */
00447: protected function isCBFunction( $sValue )
00448: {
00449: return ( 0 == strncasecmp( $sValue, 'function(', 9 ) || 0 == strncasecmp( $sValue, 'jQuery(', 7 ) || 0 == strncasecmp( $sValue, '$(', 2 ) );
00450: }
00451:
Posted 05 August 2009 - 01:32 AM
Posted 07 August 2009 - 01:28 AM
Posted 07 August 2009 - 08:43 AM
Posted 17 August 2009 - 10:36 AM
xx666xx, on 15 June 2009 - 09:51 PM, said:
<?php
CPSWysiwygWidget::create( array( 'target' => '#mycontact' ) );
$this->pageTitle=Yii::app()->name . ' - Contact Us';
?>
<?php echo CHtml::activeLabel($contact,'body'); ?>
<?php echo CHtml::activeTextArea($contact,'body',array('rows'=>6, 'cols'=>50, 'id'=>'mycontact')); ?>
4 requests 328 KB (117 KB from cache)
Posted 17 August 2009 - 11:19 AM
Posted 17 August 2009 - 11:52 AM
xx666xx, on 17 August 2009 - 11:19 AM, said:
http://...../assets/d5dafa33/jqui/js/jquery-ui-1.7.1.min.js
// remove the following line when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
Posted 09 October 2009 - 10:20 AM
Quote
SiteController cannot find the requested view "pogostick.widgets.examples.jqui_examples".
Posted 13 October 2009 - 09:14 AM
'import'=>array(
'application.models.*',
'application.components.*',
'application.extensions.EXTENSION_FOLDER_NAME',
),
Posted 09 November 2009 - 07:47 PM
Yii::setPathOfAlias( 'pogostick', dirname(__FILE__).DIRECTORY_SEPARATOR.'..'.'\extensions\pogostick');
...
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'application.extensions.*',
'pogostick.base.*',
'pogostick.behaviors.*',
'pogostick.components.*',
'pogostick.events.*',
'pogostick.helpers.*',
'pogostick.widgets.*',
'pogostick.widgets.jqui.*',
),
public function actionExamples()
{
$this->render( 'pogostick.widgets.examples.jqui_examples');
}
public function actionExamples2()
{
$this->render( 'pogostick.widgets.examples.jqTools_examples');
}
<?php
CPSjqGridWidget::create(array(
'target'=>'#list',
//'url'=> CHtml::normalizeUrl(array('Example','data'=>'test')),
'url'=>CController::createUrl('infoGeografica/cargarmunicipios2'),
'datatype'=>'json',
'mtype'=>'GET',
'colNames'=>array('ID No','Nombre', 'Cod INE'),
'colModel'=>array(
array('name'=>'id', 'index'=>'id', 'width'=>55),
array('name'=>'nombre', 'index'=>'nombre', 'width'=>90),
array('name'=>'cod_ine', 'index'=>'cod_ine', 'width'=>80, 'align'=>'right'),
),
'pager'=>'#pager',
'rowNum'=>10,
'rowList'=>array(10,20,30),
'sortname'=>'id',
'sortorder'=>'desc',
'viewrecords'=>'true',
'caption'=>'My first grid',
'theme' => 'steel',
));
?>
public function actionCargarmunicipios2()
{
$page = $_GET['page']; // get the requested page
$limit = $_GET['rows']; // get how many rows we want to have into the grid
$sidx = $_GET['sidx']; // get index row - i.e. user click to sort
$sord = $_GET['sord']; // get the direction
if(!$sidx) $sidx =1;
//$responce->page = 1;
//$responce->total = 1;
//$responce->records = 6;
$responce->rows[0]['id']=0;
$responce->rows[0]['cell']=array(0,Prueba0,00001);
$responce->rows[1]['id']=0;
$responce->rows[1]['cell']=array(0,Prueba1,00002);
$responce->rows[2]['id']=0;
$responce->rows[2]['cell']=array(0,Prueba2,00003);
$responce->rows[3]['id']=0;
$responce->rows[3]['cell']=array(0,Prueba3,00004);
$responce->rows[4]['id']=0;
$responce->rows[4]['cell']=array(0,Prueba4,00005);
$responce->rows[5]['id']=0;
$responce->rows[5]['cell']=array(0,Prueba5,00006);
echo json_encode($responce);
}